The default jquery-file-upload function does not have any validation before uploading files.
I want to restrict the upload to only a pdf file.
I found jquery.fileupload-validate.js file in the js folder, but I do not know how to modify this file.
Please help me.
i found this lines in jquery-file-upload $.blueimp.fileupload.prototype.options.processQueue.push(
{
action: 'validate',
// Always trigger this action,
// even if the previous action was rejected:
always: true,
// Options taken from the global options map:
acceptFileTypes: '@',
maxFileSize: '@',
minFileSize: '@',
maxNumberOfFiles: '@',
disabled: '@disableValidation'
}
but i do not know how to change it.