Back

Storage API "Content-Length" header missing

  • 0
  • Web
  • Storage
  • Cloud
guibuttoni
18 Sep, 2024, 09:52

I want to serve a file and need to get the "Content-Length" header within the response. "https://cloud.appwrite.io/v1/storage/buckets/:bucketId/files/:fileId/download"

Adding a "range" header in the request will provide the content length in the "Content-Range" header.

But is there a way to get it in a "Content-Length" header?

TL;DR
Developers want to get the "Content-Length" header when serving a file using the Storage API. By adding a "range" header in the request, the content length can be retrieved from the "Content-Range" header. Unfortunately, there is no direct way to obtain it in the "Content-Length" header.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more