inputEx - FileField Usage

File upload

To create a file upload form, you must use the "file" field within a form with the enctype attribute set to 'multipart/form-data'.

1inputEx({ 
2    type: 'form'
3    parentEl: 'container1'
4    enctype: 'multipart/form-data'
5    action: 'input_file.php'
6    fields: [ 
7        {type: 'file', name: 'textFile', label:'Search file', accept: 'text/*', size: 50 } 
8    ], 
9    buttons: [ 
10        {type: 'submit', value: 'Upload'
11    ] 
12}); 
view plain | print | ?