adding 2 files with the same name to the same issue

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mcmo
Posts: 11
Joined: 18 Oct 2016, 07:04

adding 2 files with the same name to the same issue

Post by mcmo »

Hi

Why can't we add 2 files with the same name to the same issue? The database table for the files (mantis_bug_file_table) has an ID which seems to be unique. Hence I think that forbidding to have 2 files with the same name makes no sense.
I have quickly checked the code of MantisBT 2.1, but I don't where having 2 files in the same ticket with the same name would create an issue.
Thanks in advance
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
JackMcConnick
Posts: 2
Joined: 04 Mar 2019, 05:58

Re: adding 2 files with the same name to the same issue

Post by JackMcConnick »

Hey mcmo, have you found the answer for this? Because I'm looking for one.
Thanks!
Chief editor @ EatrBox | CleverMicro | Toodrie | Camengo
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: adding 2 files with the same name to the same issue

Post by cas »

Jack, it does not make sense to load the same file twice. Within Mantis a filename must be unique per bug.
JackMcConnick
Posts: 2
Joined: 04 Mar 2019, 05:58

Re: adding 2 files with the same name to the same issue

Post by JackMcConnick »

cas wrote: 04 Mar 2019, 10:16 Jack, it does not make sense to load the same file twice. Within Mantis a filename must be unique per bug.
Thank you for the clarification.
Chief editor @ EatrBox | CleverMicro | Toodrie | Camengo
Post Reply