Tapped's avatar

Get file path of file on S3

Hi,

As the title says, I would like to retrieve the path of a file on S3. I need the path, because I need to upload the file from S3 to FTP. When I use Storage::get(), I get the file contents.

Gijs

0 likes
1 reply
ralee's avatar

Try this

$file = Storage::disk('s3')->url($path);

Please or to participate in this conversation.