How to save the uploaded file in default image folder (/system/images/)?

This won’t work the way you’re expecting it to. The /system/images/ route handler isn’t attached to an actual folder in the gateway install directory - it’s handled entirely in code, and retrieves images from the internal database. If you want to manually upload images, you’ll need to get a reference to the ImageManager on the gateway and call insertImage manually, filling in all the appropriate fields:
com.inductiveautomation.ignition.gateway.images.ImageManager#insertImage. Actually doing so is unsupported, so you’re entirely on your own to figure out the details. Some searching on the forum should tell you how to get the GatewayContext class, from which you can getImageManager.

1 Like