I want to have 2 different file upload field in a form and use filepond to manage image upload nicely. I could use filepond without problems with one single field in a form so far, using the code provided by the documentation. I assumed I could put more than one field with the following changes: renaming the input from filepond
Tag: multifile-uploader
Renaming files with random string after upload and storing the name in array
I’m trying to process multiple files upload with foreach then rename the files with random string and store the file names in an array, here’s my current code: I can’t find where the problem is, should I use foreach for every generated file name then use move_uploaded_file inside the foreach? Answer You are completely wrong. You have initialized $_FILES[‘files’][‘name’] in