Jump to content

help with file upload


s0c0

Recommended Posts

First let me say I have no problems uploading using input type="file" what I would instead like to do is have a file input, an add button, and an upload button.  Each time the user clicks the add button the file path within the file input field is set as the value of a hidden field using javascript.  When the use clicks upload I then want all the values in these hidden fields to be passed to my php script that will upload the files.

 

It looks as if the $_FILES global will only look at the file input to populate the array.  Is there anyway to do an http post of the file and populate the $_FILES array so I can use multiple hidden fields instead of a bunch of clunky looking file fields?

 

I hope that made sense, thank you.

Link to comment
https://forums.phpfreaks.com/topic/49756-help-with-file-upload/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.