mercredi 9 mars 2016

Copy S3 file from one folder to another

I am wondering if it is possible in Laravel 5 to copy a stored file from one folder to another within AWS.

Thus with something like:

$s3 = Storage::disk('s3');
$s3->copy('/old/s3/location/123.jpg', '/new/s3/location/123.jpg');

Is this possible? Or do I need to download the image first and then upload it again?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire