File upload not working
Posted: 12. November 2012 13:35
Hello friends,
My apache is running with virtualhost set on port 82 and a form in an aplpication isn't working just when i select a file on the input file.
When i submit form with file input empty, it works fine. But when i submit with some file selected in file input, the form tries to submit and the page keep loading for ever. I couldn't detect any error message or warning.
I'm almost certainly that is as server config issue, because it was working fine before i pasted and overwrited some xampp files by mistake.
Any idea what's causing it?
EDIT1:
making some tests i noticed that when i remove the " enctype="multipart/form-data" " from the form tag, the form submit normally even with a file selected on the input.
And if i try to submit with the enctype="multipart/form-data", the page keep loading 4ever...
EDIT2:
Tried to do it on the documentRoot too, on the :80 and got the same problem.
FOUND this old post, it explain the same problem:
http://www.mombu.com/php/php/t-40281-form-with-enctypemultipartform-data-doesnt-work-1050504-last.html
My apache is running with virtualhost set on port 82 and a form in an aplpication isn't working just when i select a file on the input file.
When i submit form with file input empty, it works fine. But when i submit with some file selected in file input, the form tries to submit and the page keep loading for ever. I couldn't detect any error message or warning.
I'm almost certainly that is as server config issue, because it was working fine before i pasted and overwrited some xampp files by mistake.
Any idea what's causing it?
EDIT1:
making some tests i noticed that when i remove the " enctype="multipart/form-data" " from the form tag, the form submit normally even with a file selected on the input.
And if i try to submit with the enctype="multipart/form-data", the page keep loading 4ever...
EDIT2:
Tried to do it on the documentRoot too, on the :80 and got the same problem.
FOUND this old post, it explain the same problem:
http://www.mombu.com/php/php/t-40281-form-with-enctypemultipartform-data-doesnt-work-1050504-last.html