Skip to content
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.

UploadedFile::store() uses md5_file() to generate a file name #161

Closed
@jeroennoten

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions