I have created a form that includes a group upload. The group upload allows up to three images. I am trying to save these file names into the database.
I tried using: ‘cat_image’=> $file[‘name’], ‘cat_image2’=> $file[‘name’], ‘cat_image3’=>$file[‘name’],
This kind of works. The issue is that if dusring the upload the file name changed because spaces were taken out or there was duplicate file names and it was appended with 1_ then the file name of the actual upload is not what is written to the database.
If I use $fileData[‘filename’] I get the proper name, but only for the last upload. and $fileData[‘filename’] does not work….