View Issue Details

IDProjectCategoryView StatusLast Update
0004993mantisbtadministrationpublic2023-10-31 16:32
Reporterjohnwebbcole Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0004993: Utility to copy attachments from File to Database
Description

I noticed that there are now utilities that will move the attachments from the database to files. It would be helpful to have the opposite.

We recently made a public server that attaches to the mantis database. Our only problem is the attachments which can only be on one of the two web servers. Being able to move the attachments to the database would solve this issue.

TagsNo tags attached.

Relationships

related to 0015496 closeddregad Script to move attachments from db to disk not working 

Activities

grangeway

grangeway

2014-10-05 06:35

reporter   ~0041373

This will be fixed in the 1.3 releases

atrol

atrol

2014-10-05 06:40

developer   ~0041375

I don't see a fix for it in 1.3.

grangeway

grangeway

2014-10-05 10:47

reporter   ~0041376

Hi atrol,

A fix for this was commited to 1.3, do you believe the new functionality doesn't cover this?

Paul

grangeway

grangeway

2014-10-05 10:49

reporter   ~0041377

Assigning to atrol for feedback

grangeway

grangeway

2014-10-05 10:51

reporter   ~0041378

Or more to the point, what additional work would be required on top of what has already been done to be able to mark this issue as resolved?

atrol

atrol

2014-10-05 12:52

developer   ~0041381

I had a short look at the code. It seems it does the job.
But I didn't expect that the hardcoded button "Move Attachments to Disk" is also able to "Move Attachments to Database"

grangeway

grangeway

2014-10-05 12:59

reporter   ~0041382

Ahh,

The description got changed to "Move attachments stored between database schema and disk files." and the button just says to disk

Any suggestions on a short string for the button?

"Attachments Migration"
"Project Files Migration" ?

atrol

atrol

2014-10-06 03:29

developer   ~0041422

"Move Attachments"
"Move Project Files"

dregad

dregad

2023-04-22 20:55

developer   ~0067697

As mentioned in earlier notes, the functionality to move files from disk to db is present since 1.3.0, but this was not clearly indicated.

The change I committed is just improving the labels.

Related Changesets

MantisBT: master 3fdf46bc

2023-04-22 20:52

dregad


Details Diff
Improve labels for Move Attachments system utility

system_utils.php:
- changed description to clearly state that the action can move files
both to database and to disk
- changed button label to remove "to disk"

move_attachments_page.php
- add tooltips for Storage column header and cells in "To Disk" and
"To Database" columns
- remove obsolete <th> width attribute, improve table layout
- fix static analysis warnings

Fixes 0004993
Affected Issues
0004993
mod - admin/move_attachments_page.php Diff File
mod - admin/system_utils.php Diff File