Skip to content

IVS-678 - BUG: reused filename leads to failure to process#272

Open
rw-bsi wants to merge 1 commit intodevelopmentfrom
IVS-678_Bugfix_reused_filename
Open

IVS-678 - BUG: reused filename leads to failure to process#272
rw-bsi wants to merge 1 commit intodevelopmentfrom
IVS-678_Bugfix_reused_filename

Conversation

@rw-bsi
Copy link
Contributor

@rw-bsi rw-bsi commented Feb 18, 2026

Solved this by always using the alternative filename returned by get_alternative_name()
The default Django behaviour is to use this only when a physical filesystem collision occurs.

eg. user uploads file named file1.ifc

Before this change:

  • first file name will be named file1.ifc
  • second file name will be named eg. file1_dj134s4.ifc (random suffix of 7 chars)
  • etc...

After this change:

  • first file name will be named eg. file1_dj134s4.ifc (random suffix of 7 chars)
  • second file name will be named eg. file1_W31fr56.ifc (another random suffix of 7 chars)
  • etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments