Every PENDING (or FAILED) row's name is now click-to-edit. Commits on
Enter / blur, reverts on Escape. The original extension is preserved
unless the user types a new one - and any new extension is validated
against allowedExtensions if set. Already-uploading or
completed files are intentionally non-editable.
Try it: queue a few files, click any file name (or press Enter while it's focused),
type a new name, hit Enter. Press Esc to cancel an edit. Try typing an extension that's not in
the allow-list above to see the validation error.
Configuration
AjaxUploader.create('#uploader', {
allowRename: true, // default - rows are click-to-edit
allowedExtensions: 'jpg,png,pdf', // new extensions are validated
onRename: function (task, oldName, newName) {
console.log('renamed:', oldName, '->', newName);
}
});