Welcome! Log In Create A New Profile

Advanced

Re: upload filename with double quote failure

Maxim Dounin
April 24, 2013 01:38PM
Hello!

On Wed, Apr 24, 2013 at 11:57:03AM -0400, motto wrote:

> as for nginx backend for debug purpose I use python-tornado script, which
> will just give back params, which nginx pass to it.
> so here it is:
> upload under Chrome:
> {u'upfile.path': ['/usr/local/apps/Opus/temp/upload/6/0009495446'],
> u'upfile.size': ['51'], u'upfile.name': ['test%22try.txt'], u'note': [''],
> u'upfile.md5': ['5a089ad5ea93048b0d492d53626bf76b'], u'upfile.content_type':
> ['text/plain']}
> upload under Firefox:
> {u'note': [''], u'upfile':
> ['erthtyjt\nrthy\ntrh\nrt\nh\nrt\nh\nrt\nh\nrth\nr\nth\nr\nth\n\nt\n\n']}
>
> Chrome does character encoding, but Firefox - just backspace double quote
> sign.

What Firefox does is actually correct per RFC, as handling of
multipart/form-data forms should be done per MIME encoding rules.
See http://tools.ietf.org/html/rfc2388 for more details.

Though anyway it's not related to nginx - it doesn't do anything
with a request body provided by a browser, it just passes it as is
to a backend.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upload filename with double quote failure

motto April 24, 2013 11:08AM

Re: upload filename with double quote failure

Maxim Dounin April 24, 2013 11:46AM

Re: upload filename with double quote failure

motto April 24, 2013 11:57AM

Re: upload filename with double quote failure

Maxim Dounin April 24, 2013 01:38PM

Re: upload filename with double quote failure

motto April 25, 2013 03:06AM

Re: upload filename with double quote failure

Maxim Dounin April 25, 2013 06:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
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