Location of images in confluence articles
Asked by Mark Gesite:

I need to find out where to find in our Confluence server the location where the images we uploaded in our articles located.

Also, is there a way to change linked images? seems like our images are broken. These are images that came from our previous ticketing/solution system that we already decommissioned, I have the entire folder with all its original images. Its just a matter of changing the pointers to this folder.

![Screenshot_5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/93077iCEBBAC19C5C3E854/image-size/large?v=v2&px=999 "Screenshot_5.jpg")


Answers:
author: Shannon S
body: Hello Mark,

Thank you for raising this issue, and my apologies for the delay.

I just require a bit of clarification on this issue. Is the problem regarding Confluence or Jira? You mentioned the images are stored in your articles, so I assume that might mean your Confluence pages which you are using to host your Jira Service Desk Knowledge Base. However, you said that the images are from a previously linked ticketing solution.

When you migrated from your previous system, how were the Confluence pages migrated exactly? The attachments should be stored within Confluence, but it depends on how the migration was completed.

Looking forward to hearing from you!

Shannon

comments: author: Mark Gesite
body: Hi Shannon,

Sorry, I meant Confluence server.

We didn't realize that when you copy and paste an image when creating an article, it only copies the image source and not the actual images.

The problem now is our former Solutions System has been decommissioned, that's why we are getting the error above.

I want to know exactly where the images are stored when creating an article in Confluence.

I also want to know if we can change the image pointers from an article so that it doesn't point to an empty, non-existing online image source anymore.

Thanks.


author: Shannon S
body: Hi Mark,

I'm so sorry for the delay, as I've been on holiday for the last few weeks.

Your situation is clear now, thank you for clarifying that. It does sound similar to the following issue:

* [When pasting an image into the editor, the image is not attached correctly](https://confluence.atlassian.com/confkb/when-pasting-an-image-into-the-editor-the-image-is-not-attached-correctly-757729008.html)

Even if you have the original images, Confluence needs to attach them to the page properly and in the database. There's not really a way to do that, short of scripting this and writing to the database yourself, which would take a considerable amount of time.

To answer your question about changing the image pointers, you would need to do a find and replace in the database, similar to the procedure here: [How to replace all hard coded links after a base URL change](https://confluence.atlassian.com/confkb/how-to-replace-all-hard-coded-links-after-a-base-url-change-284366235.html).

The best fix in both cases would be to perform the migration over again, by migrating the space from the decommissioned server to the new one. You would need to be able to bring the decommissioned server back online, which may require a site restoration.

If you do happen to have already created backups of the necessary spaces, then we can restore from those.

Do you have any backups of the old system?

Regards,

Shannon


author: Mark Gesite
body: Hi [@Shannon S](/t5/user/viewprofilepage/user-id/510046) ,

I understand the delay.

The first link you provided is pointing to a non-existing Confluence Drag and Drop plugin, which I don't think we will need as we are already aware of our previous mistake with the copy/paste method.

Regardless of the method, I think it will still take a considerable amount of time to solve this issue, so we are looking for the most efficient way to make it work.

The source editor plug-in tool you suggested shows the codes but doesn't tell us the location of the images in the database:

![confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/97651i945A32A3B7B2D0EE/image-dimensions/398x48?v=v2 "confluence.png")

I've been searching within our Confluence server to find the image database, but I can't find them. If you can help us with that? that will be wonderful.

To answer your question. Yes, we have a backup of our previous "Solutions Center" and its Manage Engine Service Desk Plus MSP by the way. I have looked it up before but you only handle CSV migration which is text-based only.

Regards.


author: Shannon S
body: Hello Mark,

Thank you for confirming. The Confluence Drag and Drop plugin referred to in that article is an system add-on, so it *should* be enabled on your site by default. In the event that it gets disabled, you can run into issues with the attachment not being added properly.

Attachments in Confluence are stored in the **attachments** directory in the configured home folder in the file system, by default. You can find information about that below.

* [Attachment Storage Configuration](https://confluence.atlassian.com/doc/attachment-storage-configuration-166876.html)

***Edit***: In my previous message, I mentioned how if you were to manually perform the migration, it would require you to modify both the filesystem and the database. By this, I mean the references in the database to the attachments which are then stored in the file system.

It was formerly possible to completely store attachments in the database prior to 5.4, but this has since been deprecated.

The best way to solve this would be to complete the migration again using the method I mentioned. See [Migrating Confluence Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html) for more details.

I hope this helps, but do let me know if you have any further questions or concerns.

Take care,

Shannon


author: Mark Gesite
body: Can anyone help me with this?


Tags: confluence-server

jira-service-desk