indico/indico

Ensure unique attachment title within folders

Open

#2703 opened on Nov 10, 2016

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (1,524 stars) (383 forks)batch import
enhancementhelp wantedp-medium

Description

Related SNOW ticket CHG34472.

Some users tend to upload new files instead of updating already uploaded ones. In many cases, this causes having two attachments with the same title and having no way to tell which one is the newer one (at least from display view).

While we should probably make more obvious that files can be replaced in the material editor, an easy improvement could be ensuring uniqueness in attachment titles. Maybe by appending (1), (2), ... if there's already one with the same name.

Contributor guide