This project is forked from ivan-novakov. Adding drag-and-drop-file feature allowing user to drag files into the grid body.
- uses the native File API (HTML5)
- allows selecting multiple files at once
- uses raw PUT/POST request with the Ext.data.Connection object (no flash, or hidden iframes)
- displays upload progress
- supports asynchronous (simultaneous) upload
Clone the repository somewhere on your system and add the path with the prefix to Ext.Loader:
Ext.Loader.setPath({
'Ext.ux.upload' : '/my/path/to/extjs-upload-widget/lib/upload'
});
Then you can use the dialog:
var dialog = Ext.create('Ext.ux.upload.Dialog', {
dialogTitle: 'My Upload Widget',
uploadUrl: 'upload.php'
});
dialog.show();
For the server side, see the upload.php file in the example.
- remove some hard-coded parts
- implement the main widget rather as a panel instead of a dialog for more flexibility
- add more uploader implementations
- add drag'n'drop support
- improve documentation