Timeline for Magento 2 - How to upload image to REST API (POST)
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Oct 26, 2022 at 6:37 | history | suggested | stravanato | CC BY-SA 4.0 |
Just a little of grammar fixing
|
Oct 25, 2022 at 21:36 | review | Suggested edits | |||
S Oct 26, 2022 at 6:37 | |||||
Feb 20, 2020 at 10:19 | review | Suggested edits | |||
Feb 20, 2020 at 10:54 | |||||
Feb 25, 2019 at 8:53 | review | Suggested edits | |||
Feb 25, 2019 at 9:14 | |||||
Jun 23, 2017 at 16:14 | comment | added | Manthan Dave | Well better to do one thing , send base64_encoded image and decode it where you needed file format. using base64_decode and then do put_file_contents with image name it will create new image for you | |
Jun 23, 2017 at 15:46 | comment | added | 0xh8h | Thank you Manthan. Can you please tell me more about the custom observer approach? I didn't understand it clearly. I think that whether we use observer or not, we still have to get the file from api, right? But this is what Magento 2 API doesn't support. | |
Jun 23, 2017 at 10:19 | comment | added | Manthan Dave | Yes Bang on @piavgh - Magento 2 rest api for media upload its not supporting file input , you must need to pass base64 encoded image. or you can create your custom observer for that . | |
Jun 23, 2017 at 9:56 | comment | added | 0xh8h | Hi Manthan Dave, so basically Magento 2 API does not support file input, right? I worked with Laravel API, and they support file input, wonder why Magento 2 doesn't do this? | |
Jun 22, 2017 at 5:07 | vote | accept | 0xh8h | ||
Jun 22, 2017 at 4:56 | history | answered | Manthan Dave | CC BY-SA 3.0 |