I’m trying to access the original filename to store in a DB against a GUID that is set upon saving to S3 so that the user can then download with the original filename.
I used to use (within a repeat of the upload step)
$_POST.upfiles[$index].name
But having set up a form which uploads files (I can see them successfully saved in the uploads folder on the server so I know the upload works) I can’t seem to access the original $_POST array for the files:
Produces:
and I can’t seem to use the name value as I have always done in the past (there should be the details of 2 files in this test). I have also tried addressing to the name field directly.
When using it before it was on PHP, maybe on this NodeJS project it’s handled differently. Any help would be appreciated!