Open pisarevaa opened 5 years ago
Hey, that's a pretty advanced use case. I currently don't have an answer to this... I would need to dig deeper and learn this myself :) Perhaps the creator of the underlying driver package can help you more with this issue?
Hi @pisarevaa , how can you change the permission to private? Ithanks
I just want to apologize for my question.
I overlooked these lines of codes.
$dir = '/'; $recursive = false; // Get subdirectories also? $contents = collect(Storage::cloud()->listContents($dir, $recursive)); $file = $contents ->where('type', '=', 'file') ->where('filename', '=', pathinfo($filename, PATHINFO_FILENAME)) ->where('extension', '=', pathinfo($filename, PATHINFO_EXTENSION)) ->first(); // there can be duplicate file names!
instead of using Storage::disk('google')->url($attachedFile->getClientOriginalName().''); which make the files public.
that brilliant idea of yours @ivanvermeyen solves my problem, thanks you!
Hi, how to grant permissions on a folder to a user (e-mail)? I only can grant public or private permissions but I need grant specific rules (e-mail, type etc.)