Replies: 1 comment
-
Opened an issue based on this discussion since it's basically a bug: #498 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using S3 as a datastore, zipline does not set the MIME/content type of files it uploads to S3. This means if you attempt to load the files directly from the S3 provider, it will download the file rather than showing it in browser. I'm awful at typescript, but it looks like zipline already determines the MIME, so it just needs to be added to this putObject request:
zipline/src/lib/datasources/S3.ts
Line 24 in fe50beb
My use case for this is that I've been using ShareX with Backblaze B2 for a while. B2 lets you use a custom domain name through CloudFlare and does not charge egress bandwidth for it. So I can have
zipline.example.com
pointing to my docker instance, andi.example.com
pointing to CloudFlare which points to the B2 public bucket. ShareX gives me a link likei.example.com/u/file.jpg
and it could transfer TBs of bandwidth without me being charged.B2's S3 API can automatically determine MIME type based on file extension, so for now I've just hacked it together by changing this line to
But it'd be nice if this were built in and vendor agnostic.
Beta Was this translation helpful? Give feedback.
All reactions