I use a form with an Ext.form.field.File component.
When i click it, it appears a dialog box: Is it possible to set max_file_size and filter only the file with .png extension??
This is my code:
var form = this.up('form').getForm();
form.submit({
url:url,
waitMsg: msg,
waitTitle: title,
success: function(t,o) {
...
}
});
AFAIK, you don't have access to the file system directly from JavaScript. In the past I have use a small flash component (or in case of IE, an ActiveX component), which provided multi-file uploading,
and size checking.
Setting the max upload size on the other hand is handled on the server.