<div dir="ltr">I figured it out... Here&#39;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; off;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30d;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<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.&nbsp; Why?&nbsp; Because I failed to escape the &quot;.&quot; (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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; off;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30d;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>Thanks for the insight, everyone.<br><br><br clear="all">-- Adam<br><br>&quot;Courage is not the absence of fear, but rather the judgment that something else is more important than fear.&quot; — Ambrose Redmoon<br>
<br><br><div class="gmail_quote">On Sat, Aug 23, 2008 at 11:44 AM, mike <span dir="ltr">&lt;<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>&gt;</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&#39;s a required HTML enctype in the &lt;form&gt; tag to be able to<br>
submit file uploads. it&#39;d probably help if you included the version of<br>
nginx you&#39;re using.<br>
<br>
i host a drupal site currently and there&#39;s been no complaints (not<br>
sure if they&#39;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 &lt;<a href="mailto:adam.setzler@gmail.com">adam.setzler@gmail.com</a>&gt; wrote:<br>
&gt; I just found this in the Drupal upload module...<br>
&gt;<br>
&gt; $form[&#39;#attributes&#39;][&#39;enctype&#39;] = &#39;multipart/form-data&#39;;<br>
&gt;<br>
&gt; Does this mean I need to have the Nginx Upload mod installed?<br>
<br>
</div></div></blockquote></div><br></div>