<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Nginx was the culprit. By default it seems to limit the upload to<b> </b><u><b>1M</b></u>. I put these two directives in the http{} block of nginx.conf. <br>
</span></font></p><p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"></span></font></p><b><span style="font-family: courier new,monospace;">client_max_body_size 32M;</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">client_body_buffer_size 128k;</span></b><br><br><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">And voila I can upload!!</span></font><br>
<br>Cheers<br>Alex<br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 4:26 PM, Alexander Arul <span dir="ltr"><<a href="mailto:alexander.arul@gmail.com">alexander.arul@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>Summary:<br>1) I'm using Node Gallery module to set up albums and photos. For the photo content type, I'm enabling 7 file upload fields. However, when I try to upload a couple of files or a single file which together total <b><u>more than 1MB</u></b>, a javascript alert pops up, saying "<b>An HTTP error 0 occurred. /node_gallery/upload/js</b>". The upload will not proceed after that. Uploads <u><b>under 1MB are fine</b></u>.<br>
<br>2) This problem only occurs only on the Development server, but on my local sandbox I am able to upload using all 7 or part of the file upload fields. <br><br>3) The modules installed and and their configs do vary for each server, but I've tried to make both servers as identical as possible where node gallery, image cache, permissions and file uploads are concerned. Thus I'm starting to think that this may be actually a server issue.<br>
<br>4) As you can see from my data below, I've set my Dev server upload limits all the way up to 256Mb. But somewhere somehow there is a hidden limit of 1Mb that eludes me.<br><br>Here are the details of Development Server and my local Sandbox server. I am providing extensive data as far as possible, so that we can get to the solution quickly. Thanks in advance! :)<br>
<br><br><u><b>DEVELOPMENT SERVER (The one that fails on >1M uploads):</b></u><br><br><u>hardware:</u> linux+ nginx + php-fpm + apc <br><br><u>php settings</u>:<br>memory_limit: 256M<br>post_max_size: 256M<br>upload_max_filesize: 256M<br>
max_input_time: 60<br>max_execution_time: 100<br><u><br>apc settings</u><br>apc.max_file_size: 256M<br><u><br>Relevant modules:<br></u>
Upload (core)<br>Node Gallery<u> <br></u>Imagecache (all sub modules execept command line support)<br><br>devel(maybe relevant?)<br><u><br></u><u></u><br><u><b>SANDBOX SERVER (where uploading images with 7 file fields is no problem):</b></u><br>
<br><u>hardware</u>: windows + apache + php (acquia drupal stack)<br><u><br></u><u>php settings</u>:<br>memory_limit: 128M<br>post_max_size: 32M<br>upload_max_filesize: 256M<br>max_input_time: 60<br>max_execution_time: 300<br>
<u><br>apc settings</u><br>NOT INSTALLED<br><br><u>drupal modules & settings for the above modules</u><br>I've been over this many times, both servers are nearly identical.<br><br><br>Thanks guys!<br>Alex<br>
</blockquote></div><br>