CreativeDream / php-uploader

PHP File Uploader is an easy to use, hi-performance File Upload Script which allows you to upload files to webserver
MIT License
94 stars 51 forks source link

getting just the uploaded file name #16

Open jwed opened 7 years ago

jwed commented 7 years ago

Hi,

How can I get just the file name after upload the file ...?? what is the format to get the name.

Thank you ..

amandhakad commented 5 years ago

This is old, but anyone might be looking for this answer as there is no mention about file name in documentation.

You can echo $data['data']['metas']['0']['name']; If multiple files are being uploaded, then 0 can be replaced by 1, 2, 3 and so on to get file names of all uploaded files. I got file name in this way: image