Greetings, and how to get an absolute image url. M...
# general
j
Greetings, and how to get an absolute image url. My first post in this forum, so apologies if I'm not doing this right. Hi folks. I'm a Wordpress developer working with a Netsuite expert and using the WooCommerce REST API. So far, everything is going well - we're able to create/edit/delete products using the REST API. Except for the image url. Netsuite pushes our image url out like this: “[sitename]/core/media/media.nl?id=1022936&c=996356&h=b3579ce7d2680de37931” Browsing to the image shows it nicely in the browser. But I would like the actual image with file extension (not a URL with ? query) to be sent to the REST API. Is there any way this can be done?
l
When you upload the image you give it a name, if you don´t it will be the file name. This is stored in File.name property, I think this is the best you will get, not sure Netsuite actually stores the "file name" , so I think the netsuite File record name is the best option. Maybe someone else knows more in detail 🙂
j
Cheers, Lander. I really need to be able to use the file name in the REST, rather than the dynamic reference