简体   繁体   中英

How to customize fileupload.js when using primefaces?

I want to access data variable of fileupload.js so that i can add additional logic. Let say when the file is uploading, i want to grab the data value so that i can show the progress status in a different way. Is this can be achieved? Appreciate your time to answer this question.

If you want to get progress for individual files you can use callbacks provided by the plugin, as you mentioned you are using fileupload.js means you are using bluimp file upload plugin.

it provides many callbacks

eg

$('#fileupload').bind('fileuploadprogress', function (e, data) {/* ... */})
$('#fileupload').bind('fileuploadprogressall', function (e, data) {/* ... */})

here's the link to find all the options provided by blueimp plugin. if you are not using this plugin then never mind.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM