This topic contains 5 replies, has 2 voices, and was last updated by oro6 6 years, 11 months ago.
- Topic
hello!
we’ve extended a custom entity with oro attachments. this works very well in the oro backend, however, we also need to set an attachment when it gets uploaded from a user via a rest api. can someone point out how the correct way for this would be to convert uploadedFile to an oro attachment and store all this then via gaufrette?
what I’ve found for now is to do it like this:
12$attachment = new Attachment();$attachment->setTarget($myEntity)->setFile($theConvertedFile);but I am missing the conversion and the actual upload …
thanks!
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.