secretsquirrel
Programmer
sorry, for adding another file upload question, but i can't find my answer on this site.
all i want to do is upload an image file using php. i've got my file upload page working, but at the moment it only allows me to upload .txt files!
i've tried using $_FILES['myFile']['name'] and the different variations of this to see what information is actually coming through and the page finds the file name and understands the file type (image/pjpeg), but gives a file size of 0.
i was wondering if there's a php.ini variable i need to change or if there's any reason why .txt files are fine, but anything else isn't.
let me know if you need me to post some code.
thanks in advance,
ss...
all i want to do is upload an image file using php. i've got my file upload page working, but at the moment it only allows me to upload .txt files!
i've tried using $_FILES['myFile']['name'] and the different variations of this to see what information is actually coming through and the page finds the file name and understands the file type (image/pjpeg), but gives a file size of 0.
i was wondering if there's a php.ini variable i need to change or if there's any reason why .txt files are fine, but anything else isn't.
let me know if you need me to post some code.
thanks in advance,
ss...