mercredi 3 octobre 2018

How is it possible to store uploaded file on a disk with a given name?

I would like to upload a file, and specify both the name of the file, and the disk.

With Storage::putFileAs I am able to specify the file name, but not the disk, and with file('...')->store(...) I can specify the disk, but not the file's name, only the directory.

How is it possible to set both? I was not able to find any detailed documentation about these functions, only the one about the filesystem on the Laravel's site. I am looking for a function like this:

fun($uploaded_file, $dir_name, $file_name, $disk_name)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire