mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #429] Issue with downloading image file #85
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#85
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 @nhatmvo on GitHub (Feb 17, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/429
After I uploaded a file into server successfully, when downloaded that file using curl, I cannot open that file (the file is damaged or corrupted). I even used
docker cpto move that file fromstorage/<my-bucket>within fake-gcs-server container into my host machine, but I still cannot open it neither.Is this intended or my request is missing something?
here is my request:
and download it using:
and this happened when I tried to upload image file (png, jpeg, ...), with text file it's ok
@fsouza commented on GitHub (Feb 17, 2021):
Are you using the filesystem storage backend? If so, I think this is the same as #296 🤔 Need to investigate it further to check what's going on.
@nhatmvo commented on GitHub (Feb 17, 2021):
No, just a normal image file file from the internet, I used postman for testing, and the content type is returned correctly, so probably it's not the same as the issue you mentioned about.
@fsouza commented on GitHub (Feb 17, 2021):
@nhatmvo oh, I mean which backend within fake-gcs-server. What's the command you used to start fake-gcs-server?
@nhatmvo commented on GitHub (Feb 17, 2021):
I use exactly the command from README.md.
@fsouza commented on GitHub (Feb 17, 2021):
Can you try with
-backend memoryand check if the error persists?@Sytten commented on GitHub (Jun 28, 2021):
I think its because the url is missing a query param correctly, it should be:
https://0.0.0.0:4443/storage/v1/b/sample-bucket/o/tux.png?alt=media@BlackBeardBana commented on GitHub (Jun 7, 2023):
Would it be possible to support the same functionality without the need for the query param?
?alt=media@fsouza commented on GitHub (Jun 7, 2023):
For that, you'd need to use the download URL. You're making a call to the Objects: get API and it requires ?alt=media to serve object data.
@BlackBeardBana commented on GitHub (Aug 1, 2023):
@fsouza
Thanks for the response, what would the download URL look like?
I can reach the object data through the browser via:
and I've tried:
to download the image but both endpoints return a 404.
Any help would be appreciated.