Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
autoUpload | Boolean | false | ||||||
Sets or gets whether files will be automatically uploaded when selected. Code example
Set the
Get the
Try it: autoUpload
is set to true
|
||||||||
accept | String | null | ||||||
Sets or gets the file types that can be submitted to the server through jqxFileUpload.
This property corresponds to the
Code example
Set the
Get the
Try it: accept
is set to 'image/*'
|
||||||||
browseTemplate | String | '' | ||||||
Sets or gets the template applied to the 'Browse' button. Possible Values:
Code example
Set the
Get the
|
||||||||
cancelTemplate | String | '' | ||||||
Sets or gets the template applied to the 'Cancel All' button. Possible Values:
Code example
Set the
Get the
|
||||||||
disabled | Boolean | false | ||||||
Enables or disables the jqxFileUpload. Code examples
Set the
Get the
Try it: disabled
is set to true
|
||||||||
fileInputName | String | '' | ||||||
Sets or gets the Code example
Set the
Get the
|
||||||||
height | Number/String | 'auto' | ||||||
Sets or gets the jqxFileUpload's height. Code examples
Set the
Get the
Try it: height
is set to 150
|
||||||||
localization | Object | null | ||||||
Sets the various text values used in the widget. Useful for localization. The localization object has the following fields:
Code example
Set the
Get the
|
||||||||
multipleFilesUpload | Boolean | true | ||||||
Sets or gets whether multiple files selection and upload are allowed. Code example
Set the
Get the
|
||||||||
renderFiles | function | null | ||||||
A callback function used for rendering the file selection rows. Code example
Set the
Get the
|
||||||||
rtl | Boolean | false | ||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl
is set to true
|
||||||||
theme | String | '' | ||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme
is set to 'energyblue'
|
||||||||
uploadUrl | String | '' | ||||||
Sets or gets the upload URL. This property corresponds to the upload form's <?php A few notes about file uploads in PHP: Many shared hosting servers allow a very low maximum file upload size. If you plan on accepting larger files, you should consider a dedicated or virtual dedicated server. To adjust the file upload size in PHP, modify the php.ini file's "upload_max_filesize" value. You can also adjust this value using PHP's .ini_set() function. The file upload counts towards the hosting environment's $_POST size, so you may need to increase the php.ini file's post_max_size value. Be sure to do a lot of file validation when allowing users to upload files. How horrible would it be to allow a user to upload a .exe file to your server? They could do horrible things on the server. Code example
Set the
Get the
|
||||||||
uploadTemplate | String | '' | ||||||
Sets or gets the template applied to the 'Upload All' button. Possible Values:
Code example
Set the
Get the
|
||||||||
width | Number/String | null | ||||||
Sets or gets the jqxFileUpload's width. Code examples
Set the
Get the
Try it: width
is set to 400
|
||||||||
Events |
||||||||
remove | Event | |||||||
This event is triggered when a file row has been removed. Code examples
Bind to the
|
||||||||
select | Event | |||||||
This event is triggered when a file has been selected. Code examples
Bind to the
|
||||||||
uploadStart | Event | |||||||
This event is triggered when a file upload operation has started. Code examples
Bind to the
|
||||||||
uploadEnd | Event | |||||||
This event is triggered when a file upload operation has ended. Code examples
Bind to the
|
||||||||
Methods |
||||||||
browse | Method | |||||||
Browses for a file. Note: due to browser restrictions, this method would not work on Internet Explorer 9 or earlier.
None Code examples
Invoke the
Try it: browse
for a file
|
||||||||
cancelFile | Method | |||||||
Cancels a selected file.
None Code examples
Invoke the
Try it: cancel
a file
|
||||||||
cancelAll | Method | |||||||
Cancels all selected files.
None Code examples
Invoke the
Try it: cancel
all files
|
||||||||
destroy | Method | |||||||
Destroys the jqxFileUpload.
None Code examples
Invoke the
Try it: destroy
the jqxFileUpload
|
||||||||
render | Method | |||||||
Renders the widget.
None Code examples
Invoke the
Try it: render
the jqxFileUpload
|
||||||||
refresh | Method | |||||||
Refreshes the widget.
None Code examples
Invoke the
Try it: refresh
the jqxFileUpload
|
||||||||
uploadFile | Method | |||||||
Uploads a selected file.
None Code examples
Invoke the
Try it: upload
a file
|
||||||||
uploadAll | Method | |||||||
Uploads all selected files.
None Code examples
Invoke the
Try it: upload
all files
|