File upload not working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

File upload not working

Postby leonardosampaio » 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
leonardosampaio
 
Posts: 10
Joined: 07. November 2012 22:49
Operating System: Windows server 2003

Re: File upload not working

Postby leonardosampaio » 14. November 2012 18:45

nothing?
leonardosampaio
 
Posts: 10
Joined: 07. November 2012 22:49
Operating System: Windows server 2003

Re: File upload not working

Postby leonardosampaio » 19. November 2012 12:53

i noticed that the problem is only when acessing the application by the domain.net and not when acessing by the ip
leonardosampaio
 
Posts: 10
Joined: 07. November 2012 22:49
Operating System: Windows server 2003

Re: File upload not working

Postby JJ_Tagy » 19. November 2012 12:56

May be a firewall or loopback issue if only from domain?
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: File upload not working

Postby leonardosampaio » 19. November 2012 18:18

After some tests, i noticed that only files with size below 65340 bytes are uploading by accessing the application by the domain.
leonardosampaio
 
Posts: 10
Joined: 07. November 2012 22:49
Operating System: Windows server 2003


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests