-
[Send file with adonis server]Hello everyone ! I'm just trying to do a youtube downloader feature My Download method (Adonis) :
My Axios call (Nuxt):
I'm trying to send a downloaded file to my nuxt client. But a problem occured. Do i have to set an header ? But how ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Dealing with AdonisJS version 4? |
Beta Was this translation helpful? Give feedback.
-
Thanks you @McSneaky I previously used |
Beta Was this translation helpful? Give feedback.
Dealing with AdonisJS version 4?
Then this section will help:
https://adonisjs.com/docs/4.0/response#_making_response
If with version 5, then there's example project that does quite the same:
https://gitlab.com/McSneaky/youtube-downloader/-/blob/master/start/routes.ts#L28