Uploadify IO Error - related to Apache user?
I am recently using Uploadify and have deployed it to 3 different servers: Windows, LAMP with CGI PHP and LAMP with PHP running as module. I developed the code in the Windows server and when I deployed it to my Linux CGI PHP, the Uploadify works perfectly.
However, when I deploye开发者_如何学JAVAd it in the Linux PHP module, I got IO Error in my Uploadify. The interesting thing is I also have other simple upload code using PHP and it works perfectly in this Linux PHP Module server.
Anyone here has the same experience? Is it related to the fact that the user who runs Apache server is apache while the owner of the directory where the files are uploaded to is different user. I had chmod 777 this directory but still it doesn't work.
Any helps would be appreciated. Thanks in advance.
Just got a confirmation from the client, when he moved the site to non HTTPS, all uploads work properly. So the reason caused this problem is using uploadify on HTTPS site without proper certificate. The thing is the Flash component of uploadify just simply give an IO Error as opposed to clear and detailed error message.
Actually got an idea about possibility of HTTPS causing error from a Wordpress forum discussing AJAX uploader using Flash.
Thanks to all comments, I believe many possible causes as suggested in the comments, and this HTTPS is just one of them.
check the php.ini settings for the values of these variables:
max_execution_time
max_post_size
uploaded_file_max_size
post_max_size
file_uploads
Also, these entries in the .htaccess helped me previously:
SetEnvIfNoCase Content-Type "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
and/or
(security risk!)
SecFilterEngine Off
SecFilterScanPOST Off
If you haven't already, add this to the 'onError' callback function (function(a,b,c,d)):
alert("Error: "+d.type+" Info: "+d.info");
精彩评论