Reply to Re: can't get upload to work at all

Re: can't get upload to work at all new!
by colin, 11 years, 3 months ago
I am not sure what framework you are using.

But you need to instantiate the class with an upload field, that is an value from the array $_FILES. In your code, it seems that your upload file (input type="file") doesn't have a name. It should, and then you use this name to find the correct value in the $_FILES array.

Look at the code sample in the class itself, it is a minimal example showing how to create a form and instantiate the class. In your case, your form fields are incomplete, and cannot work.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important