0

This only happened in FF, not in Chrome or other browsers. I got the log below:

nginx log

[error] ... *2 part header is too long, client: ...

But I can upload images and other resources smaller than 10k, it's very strange.

trincot
  • 317,000
  • 35
  • 244
  • 286
hunter2009
  • 133
  • 3
  • Welcome to StackExchange. Could you add the text of nginx's log to the question. This will prevent issues when/if imgur is down. – phuzi May 25 '16 at 10:36

2 Answers2

0

Remember that cookies are included in the headers. Do you get the same result if you clear private data in Firefox?

If you know that the files you want to receive will be larger than 10k, try increasing the allowed header size in the Nginx config.

Community
  • 1
  • 1
  • Yes, I cleaned FF cookie and all private data, but it didn't help for this.I'm confused why it didn't happay in other broswer. – hunter2009 May 26 '16 at 02:15
0

I resolved this problem by add Accept into header as below:

XMLHttpRequest.setRequestHeader('Accept', '*/*');

I fought chrome set header accept */* and ff don't do like this.

hunter2009
  • 133
  • 3