mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #6019] [Bug] Failed to download the file #2669
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#2669
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smartyhero on GitHub (Aug 20, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6019
Bug Description
I uploaded a file using /file, and then clicked the file to jump to the browser, but the browser returned the following content. I am using the self-hosted appflowy

How to Reproduce
Using the self-hosted appflowy, upload the file and click on the file
Expected Behavior
Can download files normally
Operating System
mac
AppFlowy Version(s)
0.6.7
Screenshots
No response
Additional Context
No response
@khorshuheng commented on GitHub (Aug 20, 2024):
Can you share your nginx and Appflowy configuration?
@smartyhero commented on GitHub (Aug 21, 2024):
I did not use the official docker-compose, and I did not use Nginx. I used envoy. The following is my envoy configuration
@smartyhero commented on GitHub (Aug 21, 2024):
The following is my appflowy configuration. I replaced some confidential information with xxx.
@khorshuheng commented on GitHub (Aug 21, 2024):
How are you running the Appflowy cloud services (gotrue, cloud, Redis, postgres etc)? Docker compose with host network mode? Or, did you compile Appflowy cloud and run it using the binary directly on localhost?
As for envoy, I am assuming that you are running the envoy pre built binary, instead of docker?
@smartyhero commented on GitHub (Aug 22, 2024):
I manually compiled the Appflowy-cloud code on the host, including appflowy-cloud, admin, and gotrue, and ran the relevant binary files directly on the host. I compiled it according to the relevant dockerfile in the appflowy-cloud code base
I used systemd to manage it
envoy is the binary file I downloaded from its github release page
By the way, I am using Ubuntu 22.04 operating system
@smartyhero commented on GitHub (Aug 22, 2024):
My English is not good, I used Google Translate, please forgive me
@khorshuheng commented on GitHub (Aug 22, 2024):
Noted, do give me some time to try to replicate your setup. Will update here once I am done.
@smartyhero commented on GitHub (Aug 22, 2024):
Does the appflowy-cloud deployed using docker-compose have this problem?
@khorshuheng commented on GitHub (Aug 22, 2024):
This issue is not caused by not using docker-compose. It's certainly possible to use the compiled binaries + systemd and envoy, as long as your configuration on envoy (and the .env files) is correct. The reason I need to replicate your setup, is to determine the envoy config that is equivalent to what we have on nginx.
@khorshuheng commented on GitHub (Aug 22, 2024):
I was able to replicate the issue - the file downloading issue is not due to the envoy setup etc. Could you try setting APPFLOWY_ACCESS_CONTROL=false , and let us know whether you are able to download the file?
@smartyhero commented on GitHub (Aug 23, 2024):
I added the environment variable APPFLOWY_ACCESS_CONTROL=false, but it still doesn't work. I re-uploaded the new file and downloaded it again, but it still doesn't work.
@khorshuheng commented on GitHub (Aug 23, 2024):
Do you mean, you still see the same error message:
can't find user uuid from requests?And just to be sure: from what we can see on your uploaded environment variables, the
APPFLOWY_ACCESS_CONTROLis already set. So instead of adding this variable, we will need to modify the value of the existing variable.@smartyhero commented on GitHub (Aug 23, 2024):
I didn't notice that APPFLOWY_ACCESS_CONTROL had been set before, I retested it and now I set APPFLOWY_ACCESS_CONTROL to false and I can download the file
@khorshuheng commented on GitHub (Aug 23, 2024):
Setting APPFLOWY_ACCESS_CONTROL to false is a workaround, we will see if we can resolve this issue on the server end.
@smartyhero commented on GitHub (Aug 23, 2024):
OK, I'll set it like this temporarily, thank you for your contribution