Skip to content

How to upload file to the dynamic subdirectory? #501

Closed
@bocharsky-bw

Description

How can I create a custom namer which could generate some hash like d74a1cb2f57966565d735c6332b77474.jpg and then split it to the few subdirectories like /d7/4a/1cb2f57966565d735c6332b77474.jpg, so the resulting file 1cb2f57966565d735c6332b77474.jpg uploads to the '%upload_destination%/d7/4a/' directory.

Can I do it with VichUploadBundle?

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions