FTP Applet Uploader
Sunday, October 29th, 2006I’m sure most web programmers have come across difficulty uploading large files through HTTP forms.
Firstly, there is usually a myriad of different configuration options that need to manipulated and tweaked to actually allow large files to be submitted without the server killing the connection prematurely. Then there is the fact there is no actual user feedback to indicate what is going on. The page just remains static for long periods of time without any indication of the progress of the upload, so users understandably get frustrated and start clicking “refresh”, which (of course) just compounds the problem.
So, what’s the solution? Well, Macromedia (Adobe) has put its two cents in with the Flash 8 File Uploading functionality, but this is limited to files smaller than 100MB. Thankfully there is another web technology which has been used quite extensively throughout the internet that can perform this sort of stuff: Java applets.
Using java we can create an FTP connection to the server and upload a file to a drop area for movement by PHP (or your language of choice). Of course there are a few security hoops to jump through; you can only upload to the server that you loaded the applet from and the applet needs to be signed with a digital certificate before it can access files from your computer. However once these things are out of the way, we are good to go!
And here is the finished product. You can change the colours used by simply passing different parameters to the applet so that it fits in correctly with your website. The bundle also includes a detector applet that will ensure the user has the required Java Virtual Machine before showing the uploader to the user.


While this doesn’t fix the issue, it should provide an effective work-around for those wanting a little bit more than what the good ole file input type provides.


Then I came across Consolas. Consolas was created as a clear-type font for use in the up and coming Vista release. It is also bundled with the new Office 2007 and is available as a free download for Visual Studio 2005.