class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
let's say we got the name of the uploaded file with $foo->file_src_name, is there a way to get the full path where the file has been uploaded?
I would like to check the mime and size of the uploaded file before the action, so I need to use file_exists() and getimagesize() functions and for this I need to know the full path to the file. Documents say it is /tmp/ but is this always true?Reply
I would like to check the mime and size of the uploaded file before the action, so I need to use file_exists() and getimagesize() functions and for this I need to know the full path to the file. Documents say it is /tmp/ but is this always true?