Helpful Information
 
 
Category: Web Site Management
PHP Multiple File Upload Over HTTP?

Hello all,
Has anyone played with any utilities such as JUpload etc. to upload an undeterminied amount of files with PHP (Note: I do NOT want to, say generate x number of <input type="file">'s)

Have any of you found a good solution to this problem: A user wants to submit X amount of images to an image gallery application, they want to be able to browse their computer and select multiple files then click submit.

Any ideas????

BTW, I dont want to tell them to zip the files first to make one file.

Thanks!

Steve

I did something similar a while back, but I left the code behind with my former employer.

I believe what I did was this:
1. Ask how many files there are to upload on page 1 (yeah, I know this adds an extra step, but it's necessary if you're going to do it this way).
2. Dynamically build a file upload box for each image they wish to upload, using the array-friendly naming convention for all (something like name="image[x]"). Dispaly this form on page 2.
3. Wrap a loop around however you're currently handling your uploaded images.

Sorry I don't have something to post as an example.

I think that you're only choice is to use something like an applet or maybe something from the perl tcl/tk package. Any purely html solution will give you windows (or linux's) internal file upload box. I've seen solutions where the first page asks how many files you want to upload. The next page then generates that many upload boxes. Obviously that's not cool.

I've never used JUpload before but it looks very promising. If you do, maybe you can post back with your results. Sorry I couldn't have been of more help.

I've seen solutions where the first page asks how many files you want to upload. The next page then generates that many upload boxes. Obviously that's not cool.


Thanks guys, yeah I dont want to do the 2 page solution at all. Has anyone used an applet / control to do this with any success?


Steve.

Originally posted by steveup
Thanks guys, yeah I dont want to do the 2 page solution at all. Has anyone used an applet / control to do this with any success?


Steve.

Are you looking for a Java applet that will provide this functionality for you, or are you going to try developing your own?

Originally posted by drgroove
Are you looking for a Java applet that will provide this functionality for you, or are you going to try developing your own?

Yes ;)

I have a few years of Java programming experience, but I've never developped any cool / fancy Applets before. I guess I want an applet / activex sort of thing (similar to JUpload). Ideally I'd like someone to tell me that they've had the same problem and (this) is the solution, or at least a link.


Thanks.

Steve

Moved to Scripts board from PHP.

do you still need information about JUpload? i am currently developing yet-another JUpload
take a look at http://www.haller-systemservice.net/jupload/

can give advice for do-it-yourself people, too :-)

SPAM - deleted!

Hi Mike...

Nice work on JUpload, I just downloaded 0.90 and I'm getting ready to set it up to save the images into my database. I'm wondering if you know of any articles that you or others have written explaining the best/easiest way to do so!

I could figure it out for myself, (and if I have to I will write the very guide I'm looking for!) but I'd much rather read someone else's suggestions.

Thanks and keep up the awesome work, JUpload is very impressive. :tntworth:

do you still need information about JUpload? i am currently developing yet-another JUpload
take a look at http://www.haller-systemservice.net/jupload/

can give advice for do-it-yourself people, too :-)
That link leads to a 404 error.

You can try SWFUpload (http://swfupload.mammon.se/)










privacy (GDPR)