Hi peepz,
ive read the forums and tried lots of things but i doesnt seem to help me.
I tested the upload.php file with the file test.php and the file is uploaded to the right directory, so it seems my upload.php is allright
however if i use the flash version i get this error in debug mode:
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 500.
it starts uploading, progress bar is working and at the end i get this error.
ive checked the upload url and it just has to be right. for now i have
upload_url: "upload.php"
as my upload.php file is in the root dir just like swfupload.swf: flash_url : "swfupload.swf",
here it can be viewed online:
http://foto.arrowvisions.nl/upload/index.php
can someone tell me where i have to search for the problem? thanks a lot
Here is a portion of the
Here is a portion of the post. It looks okay.
POST http://foto.arrowvisions.nl/upload/upload.php HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data; boundary=----------ae0ae0Ef1Ij5GI3ei4cH2KM7Ef1ae0
User-Agent: Shockwave Flash
Host: foto.arrowvisions.nl
Content-Length: 253053
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: BCSI-CS0A28F00F=2; PHPSESSID=c60de33c7d800ac7a88d7af30c2d375b
------------ae0ae0Ef1Ij5GI3ei4cH2KM7Ef1ae0
Content-Disposition: form-data; name="Filename"
Moose in our yard.jpg
------------ae0ae0Ef1Ij5GI3ei4cH2KM7Ef1ae0
Content-Disposition: form-data; name="PHPSESSID"
c60de33c7d800ac7a88d7af30c2d375b
------------ae0ae0Ef1Ij5GI3ei4cH2KM7Ef1ae0
Content-Disposition: form-data; name="Filedata"; filename="Moose in our yard.jpg"
Content-Type: application/octet-stream
Here is the response from the server:
HTTP/1.1 500 Internal Server Error
Date: Thu, 15 Nov 2007 23:23:58 GMT
Server: Power MOD by edore.nl
Content-Type: text/html; charset=iso-8859-1
Transfer-encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
500 Internal Server Error
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
webmaster@arrowvisions.nl and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at foto.arrowvisions.nl Port 80
I recommend checking your server log. There may be a server issue or possibly an incompatibility in the way Flash posts the file.
This is what i got from the
This is what i got from the server log:
mod_security: Access denied with code 500. Error processing request body: Multipart: final boundary missing [severity "EMERGENCY"]
This error message from ModSecurity means that the request body was not
properly constructed or something was wrong with the file upload (most
likely that the client timed out and did not fully complete the upload).
Other possible reasons for this -
1) If the end of the final boundary is missing a CRLF
2) If the size specified in the Content-Length header is too small. In
this case, Apache would cut off the end of the file.
Known bugs
If you are using Apache with mod_security this will not work, you need to put the following in your .htaccess file to disable mod_security:
SecFilterEngine Off
SecFilterScanPOST Off
Disabling mod_security isn't allowed on some shared hosts, and only do this if you know what you are doing.
So editing the .htacces is what i will do next
Hi peepz, i have changed the
Hi peepz, i have changed the .htacces file. the file is uploaded right now but he doesnt END THE UPLOADING. he hangs at file 1 and doesnt go to file 2
anyone any ideas?
I think the basic problem is
I think the basic problem is that there is a bug in Flash Player which effectively makes SWFUpload (and other Flash Based upload tools) incompatible with mod_security.
Some work-arounds can be found on Google, but I haven't tried any personally and don't know if they work or what the consequences to server security might be.
Error 406
I got 406 error's after moving to a new host. Disabling mod_security made everything working fine again. Thanks! (I just post that others find the 406 Error in this forum)
SWFUpload rocks!
Similar Problem
I am having a similar problem.
I am not quite sure why.
The script goes all the way through and then gives me a 500 error after it looked like everything went off without a hitch.
I figured it was a mod security / server related issue, because I just moved my client over from a previous host to a new one. I couldn't find anything in the logs about it, and I tried disabling mod_security and still I get an error.
like this at the end:
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 500.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Any thoughts? This one has me stumped.
Thanks for your time!
-thedarkflop
Error messages
Usually when a 500 error occurs (well, in ASP.Net anyways, maybe not for other stacks) you will get additional error information. But Flash Player (and therefore SWFUpload) ignores all this information.
You can look in your server logs for more info or do a packet capture (google WireShark) to capture the information.
Ok
Yea I checked the server logs and I got nodda.
I will try wireshark and see what I can find.
I checked the folder permissions and everything is good there too.
Found the problem
I found out that if I uploaded and image with an uppercase .jpg extension,
or with .jpg spelled like .jpeg, It doesn't work.
I added the exceptions below, but it still doesn't seam to work.
Thoughts?
file_types : "*.jpg; *.JPG; *.jpeg; *.JPEG",
file_types_description : "JPG Images",
file_upload_limit : "0",
Anyone have an idea?
Anyone have an idea how to change this?
Sample upload
If you are using the sample upload.php (provided in the samples directory of the download package or in the stickied thread here) you'll find this behavior.
The sample checks for valid file extensions but it case sensitive. I've since updated the sample file which can be downloaded from the stickied thread and will be released in the next SWFUpload package.