Results 1 to 2 of 2
  1. #1
    rsquaredpgh is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default 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?

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    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.

Similar Threads

  1. Replies: 5
    Last Post: 02-03-2011, 07:20 AM
  2. Replies: 1
    Last Post: 08-04-2010, 04:24 PM
  3. Replies: 0
    Last Post: 07-15-2010, 02:23 PM
  4. Replies: 0
    Last Post: 02-11-2009, 10:53 AM
  5. Recommendation about databases
    By tommy in forum JDBC
    Replies: 2
    Last Post: 07-28-2007, 06:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts