My question is in regards to how I should go about doing this. My site allows users to upload videos (1min - 5min in length). At the moment, the user chooses the video file, I then begin uploading it to an iframe. The user then fills out some information about the video. After completing the form, I was hoping to allow the user to do something else while I then upload that video server side.
Right now, that system works, but after they complete the form and hit 'submit' the browser begins the upload and no actions can be taken by the user until it's done being uploaded. This is my first website working with files like this so any suggestions are very welcome.
Uploading is tricky because the standard HttpRequest isn't able to show a percentage of the upload in most browser without some server-side polling via ajax, and if it's a big file, the user can be waiting for ages without even seeing if the upload has been successful.
There are few solutions to this. (1) a lot of people use a Flash ojbect to do this, and there are many examples:
http://www.plupload.com/example_queuewidget.php
http://blueimp.github.com/jQuery-File-Upload/
.. there are loads just google til u find one you like
(2) if you dont want to use a little swf for this then you have to post the file using ajax and keep checking the the server (with ajax) to respond with the current filesize, which is way more involved.
If you want your user to be able to keep using the site and other pages instead of waiting on the same page, why not use a popup to show the actual upload console? or even a frame(nastier).
Cheers A