I’m using extJS4 for my GUI and thus also to display the file upload dialog.
In the end I want to only have a button which when I click it it displays the file upload dialog, and when I select something there it automatically uploads the file.
For the automatic “submit” I know that I must write a handler for the onChange event of the file upload dialog. Thus this is not the problem. But is there a way to disable the textfield without having to resort to CSS?
(when I select a file to upload the name is written into the textfield….and I want to either eliminate the textfield or at least make it invisible).
The property you search is
buttonOnly: trueHere you find the documentation
Just add it to the example like this: