|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Quote:
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. |
|
#5
|
||||
|
||||
|
Quote:
Are you looking for a Java applet that will provide this functionality for you, or are you going to try developing your own?
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#6
|
|||
|
|||
|
Quote:
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 |
|
#7
|
||||
|
||||
|
Moved to Scripts board from PHP.
|
|
#8
|
|||
|
|||
|
still need infos?
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 :-) |
|
#9
|
|||
|
|||
|
SPAM - deleted!
Last edited by christo : September 8th, 2005 at 04:25 PM. |
|
#10
|
|||
|
|||
|
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. ![]() |
|
#11
|
||||
|
||||
|
Quote:
That link leads to a 404 error.
__________________
. Save The Developers! :: How To Ask Questions The Smart Way :: Cheat Sheets :: PHP :: MySQL :: Flash :: 13 Moon Facebook App. My Delicious"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves." - Bill Hicks "Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it." - Heart Sutra |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > PHP Multiple File Upload Over HTTP? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|