s0c0 Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
corbin Posted May 3, 2007 Share Posted May 3, 2007 you could change the style of the input field to be display: none and then make another field.... Dunno how well that would work though lol Link to comment https://forums.phpfreaks.com/topic/49756-help-with-file-upload/#findComment-244060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.