I need to get the aboslute path of a file uploaded by the user in PHP. How can I do that? Im doing this cause I need to post the information to an API via cURL
The file path is stored in the $_FILES
array - just apply realpath
to that
realpath($_FILES['userfile']['tmp_name']);
A few points:
is_uploaded_file
move_uploaded_file