Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

try to download a file from deta drive through a endpoint #362

Answered by ooralas
ooralas asked this question in Help
Discussion options

You must be logged in to vote

@aavshr thanks for your answer, after i update the .env file it worked.

hi @ooralas the code looks good to me, can you please try to put the env var BINARY_CONTENT_TYPES=application/pdf for the Micro and try again? The issue might be because of this, more here: https://docs.deta.sh/docs/common_issues#nodejs-micros-cannot-serve-binary-files

Also, please bear in mind that Micros have a payload size limit of 5.5 Mb so larger files can't be served from the Micro.

@aavshr i couldn't mark you answer in the thread as an answer, so i will do it hier :).

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ooralas
Comment options

@ooralas
Comment options

@aavshr
Comment options

@ooralas
Comment options

@aavshr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ooralas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants