Nginx can not upload image to cloudinary (hosted in AWS)

email_ardi nginx-forum at nginx.us
Thu Jul 17 12:15:11 UTC 2014


Hi,

Im new in Nginx. After read few articles, i think Nginx is faster than
apache (if i'm not mistaken) 

Currently we're developing a project in apache. But when we set up a "user
acceptance test", our clients complain that our site is running slow. So we
migrate to nginx, everything seems to be ok, but when i want to upload a
file (using cloudinary), we never success. Previously when we're in apache,
this feature is ok.

we host our site in AWS

here are the log file..

any thoughts will be very helpful

2014/07/17 17:00:39 [error] 25448#0: *290 FastCGI sent in stderr: "PHP
message: PHP Fatal error:  Uncaught exception 'RequestCore_Exception' with
message 'The stream size for the streaming upload cannot be determined.' in
/home/ubuntu/www/mysite/core/model/aws/lib/requestcore/requestcore.class.php:704
Stack trace:
#0
/home/ubuntu/www/mysite/core/model/aws/lib/requestcore/requestcore.class.php(819):
RequestCore->prep_request()
#1 /home/ubuntu/www/mysite/core/model/aws/services/s3.class.php(723):
RequestCore->send_request()
#2 /home/ubuntu/www/mysite/core/model/aws/services/s3.class.php(1230):
AmazonS3->authenticate('yap', Array)
#3 /home/ubuntu/www/mysite/core/model/aws/modaws.class.php(115):
AmazonS3->create_object('yap', 'reviews/ee5309f...', Array)
#4 /home/ubuntu/www/mysite/web_assets/includes/fineuploader/upload.php(85):
modAws->uploadSingle('/home/ubuntu/ww...', 'reviews/')
#5 {main}
  thrown in
/home/ubuntu/www/mysite/core/model/aws/lib/requestcore/requestcore.class.php
on line 704" while reading response header from upstream, client:
118.137.4.63, server: mysite.com, request: "POST
/web_assets/includes/fineuploader/upload.php?qquuid=ccb8962f-347b-4d33-8c37-865f29983981&qqtotalfilesize=6562&qqfile=not+jack+sparrow.jpg
HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.mysite.com",
referrer: "

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251881,251881#msg-251881



More information about the nginx mailing list