nao-pon/flysystem-google-drive

How do i make API requests to download files from Drive using Vue axios

sergiblue4 opened this issue · 0 comments

I am building a Vue SPA application with Laravel as backend.
When I tried to send a post request to my server with the fileId, it works and i get the file back as response but the browser does not download the file or ask to save the file.
It worked as expected using my web routes but the API routes refused to download the file.

Note: I also tried downloading through stream and forcing the download but still no luck it just returns a successful response and the file

i would also like to know how to fetch files from a subfolder. How do i chain through folders to get a file?
for example
Folder1/Folder2/Folder3/Myfile.mp4