mardi 4 juillet 2017

Aws s3 copy and replicate folder in laravel

I am trying to copy a folder which is already on s3 and save it with different name on S3 in laravel 5.4 . What I have found so far is that I can copy an Image, Not folder. I have tried to copy folder like ie:

 $disk->copy("admin/form/$old_form","admin/form/$new_form");

But it doesnot work like that. It give me an error. Do i need to apply loop and get each folder item separately? Like:

$images = $disk->allFiles('admin/form/$id');

Or is there any work around available in laravel or s3 api it self?

Please help, Its driving me crazy.

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire