May 19, 2012 07:39PM
Has anyone set up nginx to work with an AJAX uploader like this one before? http://valums.com/ajax-upload/

Passing the upload through to my Tornado server works fine, but I want nginx to handle the file before it gets that far. I have nginx set up to intercept regular file posts from our pre-AJAX page with "upload_pass" and "upload_store," but now with the file in the body of an XHR request, nginx doesn't treat it as a file for things like "upload_store."

Also, my AJAX page gets back a 415 error when trying to send the file. I'm using the script for image uploads if that makes a difference.

I was thinking I might be able to save a log of the request as the image file, but that seems like too much of a hack.

Any help appreciated,
Zach
Subject Author Posted

AJAX Uploader with Nginx, Not Catching Files

ztaylor4 May 19, 2012 07:39PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready