Results 1 to 2 of 2
Thread: File Uploader Recommendation?
- 10-12-2010, 08:12 PM #1Member
- Join Date
- Oct 2010
- Rep Power
File Uploader Recommendation?
I have a client whose site files are on a windows server running PHP. My client needs to have users internally be able to upload files anywhere from 2mb to 30mb - and have info about the files added to a mysql db.
I built an uploader in a web form that works perfectly except when the files start to get above 10mb or so. The error, i believe, comes from the timeout settings in the php.ini file on the server. Although he raised the max file size restriction, the server admin won't increase the timeout restriction due to security concerns. So depending on the upload speed of the connection, the files fail at some point.
So being new to Java, can anyone recommend an applet that integrates with a web form that can upload larger files and bypass these http restrictions?
- 10-13-2010, 03:46 AM #2
the applet might still work on HTTP, and still have the same problems.
what you would need is a cooperative effort on the applet and the server side to take the file and split it into several chunks, where each chunk transfers in its own http request (sequentially or perhaps a couple in parallel). Where each fragment is sufficiently small enough to not hit this timeout problem, even on slow connections.
Where the client applet sends each chunk to the server specifying some messaging such as piece 4 out of 10. The server stores each piece into a temporary location.
And when all fragments are finished sending, the applet notifies the server, which then re-assembles all the pieces and performs the storage operation.
- By mirror in forum New To JavaReplies: 5Last Post: 02-03-2011, 07:20 AM
- By maheshsardar in forum Java AppletsReplies: 1Last Post: 08-04-2010, 03:24 PM
- By msegmx in forum Advanced JavaReplies: 0Last Post: 07-15-2010, 01:23 PM
- By mahendra.athneria in forum New To JavaReplies: 0Last Post: 02-11-2009, 10:53 AM
- By tommy in forum JDBCReplies: 2Last Post: 07-28-2007, 05:04 AM