File Upload Progress

Soldato
Joined
14 Feb 2006
Posts
4,644
Location
Surrey, UK
Hi all,

I've got a normal HTML form which contains a file input, as well as some selects. When submitted, the form POSTs to a PHP script which:
- renames the uploaded file and copies it to a directory
- adds the information from the selects to a MySQL database.

This file then ECHOs a confirmation screen to the user.

What I'm looking to do is add a progress bar to the file upload. When the user clicks submit, the progress bar appears. Once the file is uploaded, the script then goes to the confirmation screen.

How hard is this? How should I go about this?

All help appreciated. I've done a fair bit of PHP/MySQL/JS but never anything like this.

TIA,
Jon
 
Don't have time to give a full answer but php can't do this unfortunately, something like a perl script would be able to though.
 
I'm looking at the PHP/Perl version of Megaupload (here).

I've uploaded it to the server but keep getting 500: Internal Server Errors when running the script. I've read the documentation and changed the Perl path in the CGI files, as well as setting CHMOD permissions.

Can anyone see where I'm going wrong?

And also, is this the right way to be going about this?

Once again, I apologise for ignorance and thanks for the replies so far :)

Jon
 
Back
Top Bottom