Page 1 of 1

large file to upload

Posted: Wed Jan 10, 2007 11:16 am
by Formula
Hello,

I need to create a tool for a client where users can upload their graphic images and pay for them.
Then we do something with it and send it back to them. My problem is that these files are big (200MB) so I can't really use the php upload file method.

I thought to use ftp applet but this is not a good solution because I can't track which files they will upload - and this is very important to me to link between the file and the payment - something like:
$order_id = 100;
$file = "test.jpg";

what are my other options to solve this problem?

I do hope I am clear enough :)

Assaf

Posted: Wed Jan 10, 2007 11:31 am
by feyd
Have you tried the standard upload solution? You'll probably want to use one of the progress indicator solutions along with it. I would imagine that it would be nearly impossible to guess how long to allow the server to wait for the upload to finish.. so you may need to write (or get) an easily configurable ftp applet or maybe even a private torrent server system.

Posted: Wed Jan 10, 2007 11:36 am
by Formula
Thanks for you reply.

The problem with ftp applet is that I can't control what the users uploading. So I can't link the file that they uploading to a payment.
Traditional uploading using http for big file is not recommended as far as I know. But can I track the progress?

Posted: Wed Jan 10, 2007 11:56 am
by feyd
Perl can fairly easily track the progress. Each way that I'm aware of is basically hacking around things because nothing really supports it natively in a straight forward fashion.

Posted: Wed Jan 10, 2007 12:30 pm
by Kieran Huggins
Sounds like a job for either a java applet or (more likely) flash.

Search for either existing flash ftp upload solutions or tutorials.