large file to upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Formula
Forum Newbie
Posts: 6
Joined: Wed Mar 22, 2006 5:03 am

large file to upload

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Formula
Forum Newbie
Posts: 6
Joined: Wed Mar 22, 2006 5:03 am

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
Post Reply