javascript - Getting custom file property in file with PHP
I was wondering if there is a way to get custom properties in file that comes from javascript.
Like this:
This is my file object that goes to server with an ajax request.
When when I print $_FILES in server side I'm only getting default values:
Thanks!
Answer
Solution:
You have to understand how this informations are send to PHP. The superglobal $_FILE only prints form uploaded file informations.
Try to print $_POST and see what you get https://www.php.net/manual/en/reserved.variables.post.php
Source