This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
Closed
Description
A great new addition to Laravel 5.3 is the UploadedFile::store()
, which also generates a filename. The generated filename is the MD5 hash of the contents of the file. So if the same file is uploaded twice, it will overwrite the first one (correct me if I'm wrong). This could be seen as a feature (it saves storage), but I think it is not the right thing to do (imagine modifying the file without changing the name). I would propose something like uniqid() to generate the filename.
Metadata
Assignees
Labels
No labels