There has to be some absurdly simple answer to this dilemma that I'm missing but if you all would indulge me and throw a little knowledge my way I'd be grateful. I'm attempting to upload a file. I have set my form enctype to multi-part/form-data but when I submit (method=POST) my $_FILES array is empty. My new ISP tells me there is a 6MB limit on file size with a 60 second timeout. I'm trying to upload a tiny file (120k). Any ideas?
Thanks,
Empty $_FILES when uploading file
Moderator: General Moderators
- EverLearning
- Forum Contributor
- Posts: 282
- Joined: Sat Feb 23, 2008 3:49 am
- Location: Niš, Serbia
Re: Empty $_FILES when uploading file
If you wrote this in your code
without the dash in 'multipart'.
then that's the error. It should bewebgal wrote:multi-part/form-data
Code: Select all
multipart/form-dataRe: Empty $_FILES when uploading file
Thank you so much. I knew it had to be something really stupid. That works great.
- EverLearning
- Forum Contributor
- Posts: 282
- Joined: Sat Feb 23, 2008 3:49 am
- Location: Niš, Serbia
Re: Empty $_FILES when uploading file
This kind of thing happens to everyone once in a while, no matter how long they've been coding. 