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.
Great job on the class. I've been using it for about a year now. :)
I'm trying to process a bunch of local files. However, I'm not sure if there's a special attribute to set to make that work, because so far this is the kind of messages returned by the log:
source is a local file /home/myfolder/myfile.jpg
- source variables
file_src_name :
file_src_name_body :
file_src_name_ext :
file_src_pathname :
file_src_mime :
file_src_size : (max= 2097152)
file_src_error :
I had the same problem for a while when starting with the class. Found the reason after a while, the cleanup command in the example page deletes the uploaded file.
Since you are dealing with local files, the most likely reason is that you deleted the file after you first ran the script. Simple remove clean() from the script and you should be fine.
I noticed this is a bit late response, but I thought I'd put it here incase anyone looks for a solution.Reply
Great job on the class. I've been using it for about a year now. :)
I'm trying to process a bunch of local files. However, I'm not sure if there's a special attribute to set to make that work, because so far this is the kind of messages returned by the log:
Thank you for helping
What is the error message returned by the class?
Since you are dealing with local files, the most likely reason is that you deleted the file after you first ran the script. Simple remove clean() from the script and you should be fine.
I noticed this is a bit late response, but I thought I'd put it here incase anyone looks for a solution.