Page 1 of 1

File upload not working

PostPosted: 12. November 2012 13:35
by leonardosampaio
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

Re: File upload not working

PostPosted: 14. November 2012 18:45
by leonardosampaio
nothing?

Re: File upload not working

PostPosted: 19. November 2012 12:53
by leonardosampaio
i noticed that the problem is only when acessing the application by the domain.net and not when acessing by the ip

Re: File upload not working

PostPosted: 19. November 2012 12:56
by JJ_Tagy
May be a firewall or loopback issue if only from domain?

Re: File upload not working

PostPosted: 19. November 2012 18:18
by leonardosampaio
After some tests, i noticed that only files with size below 65340 bytes are uploading by accessing the application by the domain.