dustin10 / VichUploaderBundle

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
MIT License
1.85k stars 519 forks source link

[RFC] OrignameNamer altering Original Name #1274

Closed oleg-andreyev closed 2 years ago

oleg-andreyev commented 2 years ago

Summary

Solely based on Namer name, I expect it to use Original Name, but actually it's adding "unique" prefix to the name

Current behavior

Namer is adding "unique" prefix

Expected behavior

OrignameNamer should not append anything to the original name of a file.

garak commented 2 years ago

This is the expected (and documented) behaviour. If you need a different one, you can implement your custom file namer