[GH-ISSUE #6498] [Bug] Self-Hosted: Incorrect URLs for Attached Files After Domain Change #2858

Closed
opened 2026-03-23 21:25:45 +00:00 by mirror · 2 comments
Owner

Originally created by @capybaras-team on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6498

Bug Description

After changing the domain, all images and files stored in Appflowy Cloud became inaccessible because the links still point to the old domain.

How to Reproduce

  1. Install Appflowy Cloud on your server using DomainName1.com.
  2. Log in from two different accounts on different devices using DomainName1.com.
  3. On Device1, create a document and attach files using the following blocks: File, Photo Gallery, Image.
  4. Change the domain or IP address of the server and update the .env file with the new URL (for example DomainName2.com).
  5. Update the URLs on the client-side, restart the app, and login again.
  6. Try to access the attached files from Device2.

Expected Behavior

The URLs for the files should update according to the new server URL.

Operating System

Windows, IOS, Android

AppFlowy Version(s)

0.7.0.0

Screenshots

No response

Additional Context

No response

Originally created by @capybaras-team on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6498 ### Bug Description After changing the domain, all images and files stored in Appflowy Cloud became inaccessible because the links still point to the old domain. ### How to Reproduce 1. Install Appflowy Cloud on your server using DomainName1.com. 2. Log in from two different accounts on different devices using DomainName1.com. 3. On Device1, create a document and attach files using the following blocks: File, Photo Gallery, Image. 4. Change the domain or IP address of the server and update the .env file with the new URL (for example DomainName2.com). 5. Update the URLs on the client-side, restart the app, and login again. 6. Try to access the attached files from Device2. ### Expected Behavior The URLs for the files should update according to the new server URL. ### Operating System Windows, IOS, Android ### AppFlowy Version(s) 0.7.0.0 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@Xazin commented on GitHub (Oct 7, 2024):

Duplicate of #6385

<!-- gh-comment-id:2396575126 --> @Xazin commented on GitHub (Oct 7, 2024): Duplicate of #6385
Author
Owner

@Xazin commented on GitHub (Oct 7, 2024):

Oh wait, I just re-read the issue.

You want to be able to migrate from one domain to another, and for it to affect files/images in documents?

<!-- gh-comment-id:2396577817 --> @Xazin commented on GitHub (Oct 7, 2024): Oh wait, I just re-read the issue. You want to be able to migrate from one domain to another, and for it to affect files/images in documents?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2858
No description provided.