-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
It should be possible to link an existing file to an entity #841
Comments
@Aurelsicoko told me it's possible. I let him answer you. |
This behaviour will be handled by the Media Library plugin. It wasn't the goal of the Upload plugin to manage the links between entities and files. However, we anticipated it, that's all we did. Edited: I still think it's already possible. If you pass the ID of the file when you update an entity, I'm almost sure both will be associated. |
@TheWebsDoor Have you update about this point ? |
I didn't try to reproduce it since the last time, I'll check it tonight and I'll let you know ! |
@TheWebsDoor Have you figured out how to link an existing file to an entity? I have the same question but could not find the answer. |
@fodkastir I have to admit that it's been a while and I don't really remember if I came up with something. @lauriejim have you done something about this since last time? Let me know if you want me to investigate a bit more! |
This feature will be available in this feature card - https://portal.productboard.com/strapi/1-public-roadmap/c/28-media-library-with-edit-crop-resize-capabilities |
I tried to upload the file to the entity, but i can't get it on the entity. I find it in the Media Library but the field "Avatar" of the entity is empty. |
Node.js version:
8.9.3
npm version:
5.5.1
Strapi version:
3.0.0-alpha.11.1
Operating system:
MacOS 10.13.3
Do you want to request a feature or report a bug?
feature
What is the current behavior?
If we want to attach an uploaded file to an entity, it's only possible in one way : first step is to create the entity and the second is to upload the file and pass the created entity
refId
. But if we want to upload the file first and attach it to a new entity in that order, I can't do it.If the current behavior is a bug, please provide the steps to reproduce the problem
It's not a bug I think but to reproduce it, I've tried to upload my file first then after I tried to create my entity and in the file field, I tried to put the file id but it didn't work.
What is the expected behavior?
It should be possible to pass the id of the file in the field we create the new entry of the entity.
The text was updated successfully, but these errors were encountered: