ext file upload

The goal is to achieve a multi-page file transfer:

 

We all know that uploaded files can be input is implemented in ext, too, and it has an input box ,, this input box is also possible, and I believe for the first time

For people who do file upload ,, there will be a lot of questions such as how kind you can put a normal file upload input becomes ,,, this under normal circumstances in

It is to set the type for the input file, so ok, and, in the case of ext ,, only need to set its properties inputType: 'file', it ok, and,

Here can say a few files to be placed on the tabr upload ,, how he did it, in fact, he will own recognizable look:

The above is on the tabr. . . . . ,, The following is a comparison of the form will form at a glance. .

One more thing ,, Do not set of tens of thousands in tabr inputType: 'file', ,, will set this error! ! !

However, we upload files on tabr then generally only need a button on the ok, the other part is not required.

We only need to set

fieldLabel: '', 
buttonOnly: to true, // do not set buttontext will coincide with the back button,
buttonText: "Add Files"
Like this came out the same again.

Guess you like

Origin www.cnblogs.com/caihua0405/p/8277085.html