mercredi 21 juillet 2021

Set name when uploading image file with laravel

I'm working on uploading pictures to minio in laravel.

Storage::cloud()->put('image', $request->file, 'public');

Upload was successful, but it is saving random name.. now i want to assign name to it, what should i do.

Random name upload : LD7fBO5seB8KMbYFS8wNafjK73hfA7lyUPAarGme.jpg

Give me ideas.Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire