file_temporary_validator
This module provides content editors validation to prevent uploading duplicate file names into the temporary directory. It will alert the user if a file already exists, and provides a link to delete if they have permissions.
This is useful for preventing content editors from having files with numbers appended to them (e.g. filename_1). This is a common occurrence when working with multiple tabs open with partially finished content edits.
Features
- Adds duplicate file name validation on upload.
- Allows for enabling on a field-to-field basis for file fields.
Why?
Even when using modules like Media Entity File Replace, File Field Replace, or other file replacement modules files still can have filename_1 appended to the end of their name. This often happens because they might have multiple browser tabs open to the same entity and forget and try to upload a duplicate file name. Since that file is already present in the temporary folder, issues arise with naming. This module will prevent that and allow the user to delete the file to avoid having underscores.