Files undo remove

Component ID

1330662

Component name

Files undo remove

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

3018

Component created

Component changed

Component body

This module is a usability enhancement to a Field API field with uploaded files with cardinality set to unlimited or more than 1. By default, clicking the 'Remove' button will remove the file from the row and the only way to keep the file is reloading the form. With this module, clicking that button is now replaced with an Undo button so you can cancel the deletion of a file.

Installation

Just install the module, it will work out of the box.

Background

The immediate cause of this module was born by an issue on the Field collection module where an embedded widget with a multiple image field in it removed all rows when clicking on the 'Remove' button of one image. For more info see #1329508: When removing files/images with cardinality set to unlimited, all images are removed..

This module is sponsored by Krimson and is for Drupal 7 only.