Joined July 2013
·

Piyush Verma

Director of Engineering at siminars
·
Pune, India
·
·
·

Posted to Nginx direct file upload over 1 year ago

My Bad. Not just content-type I am sending a bunch of request parameters too like:

------WebKitFormBoundaryXvqKozZ4exuycMpX
Content-Disposition: form-data; name="maxlength"

102400

These would obviously not be a part of the Headers, but of the request body.
Which would require some pruning of the file saved. Correct, Or am I missing a Trick here ?

(I am relatively new to DevOps and Advanced Nginx tricks, pardon my naiveness with the concepts.)

Posted to Nginx direct file upload over 1 year ago

How do I access the Request parameters then ?

Posted to Nginx direct file upload over 1 year ago

I have a similar problem with the file output containing

------WebKitFormBoundaryvG6nluJ9VUrYg1BK
Content-Disposition: form-data; name="fileToUpload"; filename="Screen Shot 2013-09-16 at 8.48.45 AM.png"
Content-Type: image/png

How do I trim this data ? More importantly capture Content-Type as a Request Header perhaps something like X-Content-Type ?

Achievements
17 Karma
0 Total ProTip Views