knownasilya/ember-plupload

Request payload issue with Google App Engine

Closed this issue · 1 comments

Is it somehow possible to change the payload content of the plupload? It seems that it causes a memory issue on the GAE side.

I am able to upload using same endpoint with simple form upload, but when using plupload GAE complains about memory issue. I compared the headers and the difference is in the Request payload.

First one is the plupload request header and the second one is the simple form upload.

PLUPLOAD

accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,fi;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Content-Length:7940
Content-Type:multipart/form-data; boundary=----WebKitFormBoundary1i9IGFnbyyKPq0Ql
Cookie:_ga=GA1.2.3255555.235235325; PHPSESSID=AFdsDG
Host:xyz.com
Origin:http://xyz.com
Pragma:no-cache
Referer:http://xyz.com/app/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36
Request Payload
------WebKitFormBoundary1i9IGFnbyyKPq0Ql
Content-Disposition: form-data; name="name"

Screen Shot 2016-01-14 at 16.05.10.png
------WebKitFormBoundary1i9IGFnbyyKPq0Ql
Content-Disposition: form-data; name="Content-Type"

image/png
------WebKitFormBoundary1i9IGFnbyyKPq0Ql
Content-Disposition: form-data; name="file"; filename="Screen Shot 2016-01-14 at 16.05.10.png"
Content-Type: image/png


------WebKitFormBoundary1i9IGFnbyyKPq0Ql--

SIMPLE FORM

Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,fi;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Content-Length: 7940
Content-Type:multipart/form-data; boundary=----WebKitFormBoundary5241g3QBM3cAZnoS
Cookie:_ga=GA1.2.273561539.1444391088; PHPSESSID=1f54148f126a7448ce8ca5eb97424894
Host:xyz.com
Origin:chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
Pragma:no-cache
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36
Request Payload
------WebKitFormBoundary5241g3QBM3cAZnoS

Content-Disposition: form-data; name="file"; filename="Screen Shot 2016-01-14 at 16.05.10.png"

Content-Type: image/png





------WebKitFormBoundary5241g3QBM3cAZnoS--

This is actually sorted out, the problem was in the code side of the Google Apps.