View Full Version : PLEASE help with file uploads!

Super Sonic
05-12-2004, 02:01 AM
Man, I'm going through heck right now. I have a total of 5 upload slots on a single form. I would like for each to upload a file and save that file into a particular user-specified directory.
I went here:

But I soon found out that that was too broad and not descriptive enough for me to follow nor work into my preexisting script.

The script I'm making is for reviewing video games. The user selects what type of game it is(Example: Sonic, Mario) from a select list. Next the user enters the name of the game (text box). When I upload the image files (screenshots for the game being reviewed), I would like for them to go to $TYPE/$NAME (Example: Sonic/Sonic3) directory. That way all of the images will be sent to the same folder and be organized. BUT I have a total of five available slots for uploading images. Could you guys show me how to write a little script that accomplishes what I need. PLEASE, I'm begging of you.
I've started on this project not too long ago where a user can make a full professional review by just simply filling out a form. The CGI script then makes an .html file with the users input formatted in a perfect standard way. I have everything done ACCEPT for file uploads. PLEASE HELP!

05-12-2004, 05:13 AM
Without knowing your level of expertise on configuring and customizing an existing script ...

You need a script that allows multiple file uploads from one form.

Here is just one of many examples:

I never tried that one, but have used similar scripts.

If you are totally stuck in a few days yet, I will try to come up
with a better working example for you.

Give us a link to the form you would like to use (even if it doesn't work).