When uploading several files and an upload validation for one file fails, the user can only remove the files that pass validation, but not continue the process as the Upload button is hidden via .js-hide by the managed file field.

Proposed resolution

Just remove all uploaded files. This need "just" un-commenting some lines in FileUploadForm::validateUploadElement. (This is also what media_library does.)

Or make a new button appear, if the formstate has errors, but also files ready to upload, named Process all (selected and un-selected). Or even make the user select the files to process, by default all are de-selected because of the *Remove selected* button. Maybe even addressed in core(regular use of the managed file filed on a node-edit page still have the Save or Create button ..), but I guess the AJAX behaviors should be covered by the implementation ..

CommentFileSizeAuthor
#4 3156823-add_proceed_button-4.patch4.89 KBytsurk

Comments

ytsurk created an issue. See original summary.

ytsurk’s picture

Issue summary: View changes
ytsurk’s picture

Issue summary: View changes
ytsurk’s picture

Assigned: ytsurk » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.89 KB

Here a patch providing a button the managed file field way.

  • ytsurk committed 0625dc8 on 8.x-1.x
    Issue #3156823 by ytsurk: Stuck after file upload validation
    
ytsurk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.