<div dir="ltr">I figured it out... Here's what was happening.<br><br>I was setting the expiration of certain file extensions to 30 days with:<br><br>location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {<br> access_log off;<br>
expires 30d;<br> }<br><br>So, when the AJAX function was posting to upload/js, Nginx thought it was a static file, so Nginx threw a 405 Not Allowed. Why? Because I failed to escape the "." (any character) before js, so upload/js was the same as upload.js.<br>
<br>Correct regexp:<br><br>location ~* ^.+<b style="background-color: rgb(255, 0, 0);">\</b>.(jpg|jpeg|gif|css|png|js|ico)$ {<br> access_log off;<br> expires 30d;<br> }<br>
<br>Thanks for the insight, everyone.<br><br><br clear="all">-- Adam<br><br>"Courage is not the absence of fear, but rather the judgment that something else is more important than fear." — Ambrose Redmoon<br>
<br><br><div class="gmail_quote">On Sat, Aug 23, 2008 at 11:44 AM, mike <span dir="ltr"><<a href="mailto:mike503@gmail.com">mike503@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;">
no, that's a required HTML enctype in the <form> tag to be able to<br>
submit file uploads. it'd probably help if you included the version of<br>
nginx you're using.<br>
<br>
i host a drupal site currently and there's been no complaints (not<br>
sure if they're using file uploads though) using nginx 0.7.8 (i need<br>
to upgrade too)<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On 8/23/08, Adam Setzler <<a href="mailto:adam.setzler@gmail.com">adam.setzler@gmail.com</a>> wrote:<br>
> I just found this in the Drupal upload module...<br>
><br>
> $form['#attributes']['enctype'] = 'multipart/form-data';<br>
><br>
> Does this mean I need to have the Nginx Upload mod installed?<br>
<br>
</div></div></blockquote></div><br></div>