-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
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
Asset filenames renamed on import #847
Comments
hey @d-pollard any luck finding a solution for this? I'm running into the same issue |
@aalbrecht17235 unfortunately not; I believe I ended up having to unset the filename or something of that nature |
I set the unique key to the unique key of the CMS I was importing from; so had to create a text field in Craft just for that unique key |
I am also having the same issue :( |
Just released 5.0.4 with a fix for this. |
Amazing work @angrybrad |
Description
When importing into assets, filenames that contain the characters
(
&)
and duplicate symbols (characters, example--
turns into-
) seem to be either trimmed or removed entirely .This wouldn't be an issue, except that craft doesn't use their renamed filename, but rather, uses the one provided in FeedMe.
This leads to situations where the URL in craft for the asset is broken, and previews don't work for asset (which makes it easy to spot the culprits).
Example
Original file name:
booklist--700-x-460.jpg
Filename in S3 (imported by feedme):
booklist-700-x-460.jpg
Craft Asset file URL:
{BUCKET}/assets/booklist--700-x-460.jpg
Actual file URL:
{BUCKET}/assets/booklist-700-x-460.jpg
Steps to reproduce
booklist--700-x-460.jpg
Additional info
The text was updated successfully, but these errors were encountered: