Convert file attachments from Database to DISK

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Spacey
Posts: 14
Joined: 16 Jul 2007, 15:14

Convert file attachments from Database to DISK

Post by Spacey »

Hi!

I was storing all my file attachments on my DISK. Since my last Update 1-2 months ago something happened to the config files - Attachments were stored in DB since then. So now I've got mixed locations: Older files on DISK and newer ones in the DATABASE. Problem is: When I'm in "DATABSE" storage mode I can't access the DISK files and the other way does wrong as well. Now I need to extract/convert the database stored files to DISK. How can I do this?

Thanks!
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Convert file attachments from Database to DISK

Post by atrol »

If you use version 1.2.x you should use latest stable 1.2.5

Make a backup of your database and a backup of your attachments directory before trying anything!

Start admin/system_utils.php
Execute "Move Attachments to Disk"
Please use Search before posting and read the Manual
Post Reply