attachment upload to DISK into directories by ticket number

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
michaelgeorge
Posts: 4
Joined: 17 Mar 2023, 18:41

attachment upload to DISK into directories by ticket number

Post by michaelgeorge »

I am testing attachment uploads in our MantisBT installation and putting those uploads onto an NFS file system.

Since this is open-source software and our attachments could be needed for audits for up to three years, I have been asked what we would do if something happened and MantisBT was not able to properly associate uploaded documents to our changes for some reason. Currently, MantisBT creates separate directories for each Project, but then uses a unique file name across all the tickets. I am not able to determine how I can determine the bug/ticket number from the file name.

As such, we are hesitant to trust MantisBT to handle all of our Compliance documents.

Am I overlooking a setting or some mapping method that would allow tracing from the file names to the associated ticket?
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: attachment upload to DISK into directories by ticket number

Post by cas »

You can do that with a simple query using a tool like phpmyadmin.
I you have issues with that, I canhelp you to creatde such a query
michaelgeorge
Posts: 4
Joined: 17 Mar 2023, 18:41

Re: attachment upload to DISK into directories by ticket number

Post by michaelgeorge »

We have returned to testing on this issue. In our test-instance the attachments are now going into the g_absolute_path_default_upload_folder directory, not into subdirectories by Project.

cas, I believe you are saying that in order to map uploads to tickets, we would run a (read-only) query against the database in order to gather that information. Is that correct?

We did figure that with a bit of investigation we could do it that way. I am hoping for something more straightforward. Apparently, though, the location and naming of the attachment files does not separate by Project or ticket number.
atrol
Site Admin
Posts: 8588
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: attachment upload to DISK into directories by ticket number

Post by atrol »

michaelgeorge wrote: 13 Oct 2026, 14:16 cas, I believe you are saying that in order to map uploads to tickets, we would run a (read-only) query against the database in order to gather that information. Is that correct?
Sad news concerning Cas, see viewtopic.php?t=33894
Please use Search before posting and read the Manual
Post Reply