-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 Bug Report: Digital Ocean Spaces and Upload a file #6259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@behicsakar, thanks for opening this issue! 🙏 it's expected that the file is private. You should be accessing the file through Appwrite since it may be encrypted and/or compressed. |
@stnguyen90 Yeah, unfortunately it does not work as expected. i upgraded 1.4.2 by manually installing w/ docker container but it still does not work. It uploads files to DO Spaces without any warning. However, i cannot open any file in DO or direct link or anywhere. Image link shows me that it cannot be displaved because it contains errors. |
@behicsakar How are you uploading the file? Can you see the file in the Appwrite Console? |
@stnguyen90 Let me tell the issue step by step with quick demo for this issue how its happening. 1- Created a DO droplet in ams3 docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.4.3 6- Copied step3 DO Space Keys to related line in
7- Also changed next
10000
line in
8- Save it and run next command.
9- Everything should work fine. Logged in console, created a project, created a bucket, and create a file, choose a file then create. 10- when i click the File URL: 11- Open DO Spaces, you can see the file as well. 12- Try to open it directly from DO Spaces URL, it shows me
13- OK, i will give manuel permission to file in DO Spaces. Made it public permission. 14- Try to open this file again from DO Spaces link. Getting following message inside DO create a jpeg. 15- Appwrite Docker Response
As you see, i tried to examine everything from beginning, but i cant access a file in digitalocean. |
@behicsakar, as I mentioned before, this is expected. You should not be accessing the file outside of Appwrite because the file may be compressed and/or encrypted. |
@stnguyen90 To clear my mind, i am asking one last thing, then im gonna close this issue. |
👟 Reproduction steps
When i use Digital Ocean Spaces and upload any file i am getting an error when i tried to open uploaded link in digital ocean spaces.
Firstly it uploads private not a public but only manually i can change from digitalocean dashboard.
Secondly even if i make it public, i cant open my file because getting following error.
Thirdly, i cannot get any link from digitalocan spaces, im getting only local link.
The image "https://************nge.ams3.digitaloceanspaces.com/storage/uploads/app-***************3f32a/****************e49/****************9348.png" cannot be displaved because it contains errors.
Note: all .env file configured well, i can write Digital Ocean Spaces as well.
👍 Expected behavior
It has to work as expected, getting link and i can open link when i will have permission
👎 Actual Behavior
All images i can see with my local link.
But in Digital ocean spaces i see thi error message.
The image "https://************nge.ams3.digitaloceanspaces.com/storage/uploads/app-***************3f32a/****************e49/****************9348.png" cannot be displaved because it contains errors.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
I use oneclick installed appwrite from marketplace of Digital Ocean
Version 1.3.8
OS Ubuntu 22.04
No Firewall
No security rules
No filters
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: