Problem with local files

See all posts Reply

Problem with local files new!
by Jonathan, 17 years, 9 months ago
Hey,

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 : 
Thank you for helpingReply
Re: Problem with local files new!
by colin, 17 years, 9 months ago
That is strange. Are you sure that you have the right permissions to read the file? And that the file exists?

What is the error message returned by the class?Reply
Re: Problem with local files new!
by Pate, 17 years, 5 months ago
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