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'.

			inputEx({
				type: 'form',
				parentEl: 'container1',
				enctype: 'multipart/form-data',
				action: 'input_file.php',
				fields: [
					{type: 'file', name: 'textFile', label:'Search file', accept: 'text/*', size: 50 }
				],
				buttons: [
					{type: 'submit', value: 'Upload'}
				]
			});