You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uri_prefix add an unwished "/" in the beginning of files' url if directory namer already begin with a "/".
Current behavior
Using directory_namer, uri_prefix add a "/" in beginning, resulting to something like //path/to/file.jpg and is wrong (like in vich uploader field in form). Need to set uri_prefix to 'uploads/..' to prevent it or change the directory namer to send a string not beginning by a "/"
How to reproduce
use directory_namer :
vich_uploader:
db_driver: ormstorage: flysystemmappings:
media:
uri_prefix: ''# 'uploads/..' is a working temp fixupload_destination: oneup_flysystem.default_filesystem_filesystemnamer: Vich\UploaderBundle\Naming\SmartUniqueNamerdirectory_namer:
service: vich_uploader.namer_directory_propertyoptions: { property: "directory", transliterate: false }
Bug Report
Summary
uri_prefix add an unwished "/" in the beginning of files' url if directory namer already begin with a "/".
Current behavior
Using directory_namer, uri_prefix add a "/" in beginning, resulting to something like
//path/to/file.jpg
and is wrong (like in vich uploader field in form). Need to set uri_prefix to 'uploads/..' to prevent it or change the directory namer to send a string not beginning by a "/"How to reproduce
use directory_namer :
Expected behavior
Default uri_prefix should handle if directory namer already begins by a "/".
The text was updated successfully, but these errors were encountered: