You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, you can get the message after file upload with not allowed file type extension error. Documentation doesn't contain such information but you can put 'errorCallback' parameter while creating PunkAveFileUploader for example like that:
new PunkAveFileUploader({
'uploadUrl': {{ path('b2b_file_upload_supplier', { editId: uniqueId }) | json_encode | raw }},
'viewUrl': {{ ('/uploads/tmp/attachments/' ~ uniqueId ) | json_encode | raw }},
'el': '.file-uploader',
'existingFiles': {{ punkave_get_files(('/tmp/attachments/' ~ uniqueId)) | json_encode | raw }},
'delaySubmitWhileUploading': '.edit-form',
'errorCallback': function( info ) {
//I just simply show information to user
$('.allowed-file-extension').show();
}
});
Hi,
is there a way to set max file size limit for uploads?
Also, is there a way to show the user a message if he has reached the limit?
Last question, is there a way to show the user a message if he has uploaded a not allowed file type extension?
Thanks
Matteo
The text was updated successfully, but these errors were encountered: