Hey guys, have you ever uploaded an image into Net...
# suitecommerce
e
Hey guys, have you ever uploaded an image into NetSuite File Cabinet from Suitecommerce? (Let's say from my account section). I know that images/files are tricky to upload from external systems but I have never tried from a form into a view. Is there something I might need to take into account?
t
Yeah I’ve done it before. As far as I remember there wasn’t any huge issues doing it. You just need to know what folder you’re uploading to (or create one). From memory, it was just the base 64 value of the image you saved and from that you should also be able to find the file type
e
@TheAntman great! I was thinking to create a suitelet as a external and embedded somewhere because this is the straight forward solution I came up. What type of script did you use?
t
We just done it straight from a custom module on SCA. If I remember correctly, we used the file reader api to get the base 64 value and just passed it along to a backend model
e
Ha! great! I will take a look at that, thanks for sharing your approach!