Open krismanning opened 1 month ago
Just to add, I have temporarily solved my problem by doing this (I know it could be a single line), it works fine but I'd prefer the download function.
$url = Storage::disk('dropbox')->url($filename);
return redirect($url);
Hi folks,
Hope you can help me with this. I'm currenly upgrading a Laravel application from version 9 to version 11.
The app has functionality that allows to upload files to Dropbox, create folders, delete files and folders and of course to download files as well.
I took the upgrade in stages but the moment I went to Laravel 10 I could no longer download the files from dropbox, but all the other functions (create folders, jupload, delete files and folders) still work fine.
The browser throws this error:
The code looks like this....
The 'exists' check works fine. But the download doesn't and the browser throws an error. It worked fine in Laravel 9 but fails the moment I upgrade to version 10.
Storage::url works fine as well and returns a working URL for the file. Its just the download that doesnt Do I need to apply a header in the download call maybe?
Any ideas what it could be?
Thanks,
Kris