Asset ID is linked to the path instead of being a UID #6479
Unanswered
kevinmeijer97
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
Yes it's on purpose. We used to store IDs but it was a nightmare. For most cases, it's nice to be able to drop a file path into your data. Using IDs made managing the majority use case much more difficult. But I agree with you that it would absolutely be better in other situations. However, if you use the control panel to move assets, all the references will be updated for you. Make sure you use the control panel rather than just moving files around using your OS. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When an asset is set on a collection and the asset is moved to a different folder, the asset doesn't work anymore on the collection because the ID is changed according to the path it is saved on.
That means if we have an image in /folder-a/image.png and we move it to folder-b/image.png, the image does not work on all locations where folder-a/image.png is used because the ID is also changed relative to the path.
Is this something that was done on purpose, and is it possible to create a fix to where either:
I have also seen this PR, where it seems like an option is being added to replace assets. Is it true that when replacing an asset all the places where the asset is used is also being modified to have the new ID?
Beta Was this translation helpful? Give feedback.
All reactions