Local file doesn't exist error

See all posts See thread Reply

Re: Local file doesn't exist error new!
by colin, 11 years, 5 months ago
Can you please copy here the log produced by the class?Reply
Re: Local file doesn't exist error new!
by Kathy, 11 years, 5 months ago
There is nothing in the log file. I did fix one problem - I had a function called process that I renamed. Now the form submits, but the file is not uploaded. I do print out that it finds the $dir_dest directory, but nothing is uploaded to it. It is chmod'd to 777. I am assuming that the $dir_dest is based off the / directoryReply
Re: Local file doesn't exist error new!
by colin, 11 years, 5 months ago
There must be something in the log. Output $handle->log after calling process()

Looking again at your code, it looks like you have your own custom process() function. In this function, you instantiate the class, but you didn't indicate whether you are calling the class' process() function.

Look again at the code examples in the doc. It should basically look like this:
$handle = new Upload($_FILES['custom_stationery']);
if ($handle->uploaded) $handle->process('/my/dest/dir/');
Reply