@jorisvanandel - Could you please share your solution to help others if they have the same issue (and please mark your answer as best answer so it shows up in the solved category)
Nov 26, 2018
3
Level 2
(SOLVED) Can't delete files on Digital Ocean Space from Laravel Application
Hi,
I can upload files to my digital ocean running the following code:
Storage::disk('do_spaces')->putFileAs(
$folder->slug . '/original', $file, $filename, 'public'
);
However, when I try to delete it with the following code, it doesn't do anything.
Storage::disk('do_spaces')->delete($file->folder->slug . '/original/' . $file->name);
Anyone has any idea why this codeline doesn't delete the file? Thanks in advance.
Please or to participate in this conversation.