HemaSri's avatar

how to change the uploaded path in s3 to public

$res = \Storage::disk('s3')->put($directory.'/'.$filename,base64_decode($filedata));

By using the above code the uploaded file path is private by default

$res = \Storage::disk('s3')->put($directory.'/'.$filename,base64_decode($filedata),'public'); By using this above code i am not getting any response please suggest where i am doing wrong or How to make the uploaded path to public

0 likes
0 replies

Please or to participate in this conversation.