AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
56.76k stars 3.71k forks source link

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

Open capybaras-team opened 4 days ago

capybaras-team commented 4 days ago

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

Xazin commented 4 days ago

Duplicate of #6385

Xazin commented 4 days ago

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?