Я хочу разрешить пользователю загружать только 1 файл на некоторые страницы и более 1 файла на другие страницы. Там вы место, чтобы изменить это числоНастроить maxNumberOfFiles загрузки файла jQuery
var parentWidget = ($.blueimpFP || $.blueimp).fileupload;
$.widget('blueimpUI.fileupload', parentWidget, {
options: {
// By default, files added to the widget are uploaded as soon
// as the user clicks on the start buttons. To enable automatic
// uploads, set the following option to true:
autoUpload: false,
// The following option limits the number of files that are
// allowed to be uploaded using this widget:
maxNumberOfFiles: undefined,
Но если я могу изменить его здесь, он будет применяться для всех JQuery Загрузить управления File на веб-сайте. Как настроить параметр maxNumberOfFiles для достижения моей цели.