PDA

View Full Version : Form file headers



telematico
22 May 2013, 6:29 AM
Hi all ,


i need to pass headers to the submit method , how could i do ? I have to submit a file , if i don't include "filefield" in the items of the form , the headers are passed correctly . Is there a workaround ?

slemmon
24 May 2013, 8:39 AM
You can pass your own headers in the form submit, but only if the form does not include a filefield (the framework sets the headers in a just-in-time rendered form used for file upload).

http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.action.Submit-cfg-headers