indico/indico

Ensure unique attachment title within folders

Open

#2,703 opened on Nov 10, 2016

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

Repository metrics

Stars
 (1,524 stars)
PR merge metrics
 (Avg merge 18d 13h) (29 merged PRs in 30d)

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