We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When you create an imageField field with a custom pattern:
yield ImageField::new('documentFile') ->setColumns(4) ->setBasePath('api/v1/document/download') ->setUploadDir("uploads/documents/") ->setUploadedFileNamePattern('/[year]/[month]/[day]/[slug].[extension]') ;
The stored string in entity is good: /2024/08/16/xxxxxxxxx.jpg
/2024/08/16/xxxxxxxxx.jpg
But the path written on disk is incorrect as it is uploads/documents/xxxxxxxxx.jpg instead of uploads/documents/2024/08/16/xxxxxxxxx.jpg
uploads/documents/xxxxxxxxx.jpg
uploads/documents/2024/08/16/xxxxxxxxx.jpg
To Reproduce
yield ImageField::new('documentFile') ->setUploadDir("uploads/documents/") ->setUploadedFileNamePattern('/[year]/[month]/[day]/[slug].[extension]') ;
(OPTIONAL) Additional context If they are useful, include logs, code samples, screenshots, etc.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When you create an imageField field with a custom pattern:
The stored string in entity is good:
/2024/08/16/xxxxxxxxx.jpg
But the path written on disk is incorrect as it is
uploads/documents/xxxxxxxxx.jpg
instead of
uploads/documents/2024/08/16/xxxxxxxxx.jpg
To Reproduce
(OPTIONAL) Additional context
If they are useful, include logs, code samples, screenshots, etc.
The text was updated successfully, but these errors were encountered: