How can I upload a file using ExtJS 3?
I watched this exmpale:
But it seems like an Ext 4 example.
Anyone knows?
There is no file upload component in ExtJS 3, but you can create one using this example : http://dev.sencha.com/deploy/ext-3.3.1/examples/form/file-upload.html
This example use a custom component for the file upload field (see http://dev.sencha.com/deploy/ext-3.3.1/examples/form/file-upload.js).
Also don't forget to set fileUpload
to true
on your form.
Edit 4 years later : it seems that Sencha has removed the examples page for ExtJS 3, but you can still access a copy here : http://svn.geoext.org/ext/3.4.0/examples/form/file-upload.html