View Issue Details

IDProjectCategoryView StatusLast Update
0012520mantisbtattachmentspublic2010-11-08 07:58
Reporterziohausam Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.2.1 
Summary0012520: Switching between attachments pload destination (DISK, DB) looses attaches
Description

I personally face this problem. For some reason, our IT adopted a new strategy to minimize dependencies. no more DISK dependency. only depend on Database.

After changing the variable, all attaches lost. and after uploading 3 attaches in the new DB mode, we had a compromise with IT and get back to the DISK mode for a while. now the 3 attaches uploaded in DB mode are missed.

I think the structure of this function needs to be changed a little bit. a new flag to be added to the attach to determine whether it is located in DB or DISK. then the user always sees the attachments however the destination it was originally uploaded to.

TagsNo tags attached.

Activities

cas

cas

2010-11-08 06:27

reporter   ~0027289

check out the scripts within the admin section:
admin/system_utils.php
It allows to move attachments around

ziohausam

ziohausam

2010-11-08 07:11

reporter   ~0027292

Using system utils, I only can move from DB to disk, I want to go in the opposite direction. from disk to DB. is it possible?

cas

cas

2010-11-08 07:38

reporter   ~0027293

Give the fact that there are only 3, attach the again.
If not possible, install a second copy of mantis next to the current one using the same DB, use DISK in that one for storage. Now you can access those 3 attcahments again and save them for renewed upload in your production version of mantis.

ziohausam

ziohausam

2010-11-08 07:44

reporter   ~0027296

The problem is not with the 3 attaches. the problem with all other on Disk attaches. Actually thousands. Sooner or later we will move to use DB.

cas

cas

2010-11-08 07:58

reporter   ~0027299

Then lookup the routine for storing to DB and create a conversion program from Disk to DB.
Very helpfull for yourselves and nice contribution to the Mantis community.
We moved from DB to Disk because it was faster and could handle easily thousands of (big) files. The DB had issues with that in our situation (30.000 files up to 9mb).