Location of UI5 uploaded files?

Hi, in what folder location are the files uploaded through the UI stored?

I’m asking as i want to upload and then reference a device icon (42x42 png) in a new .JSON file

/etc/cmh-ludl

Thanks futzle - So does that means in the JSON I would enter the following?

“flashicon”: “/etc/cmh-ludl/image.png”

Does anyone know exactly where the /icons/ folder is that is mentioned in many of the .JSON file?

I have had a look via WINSCP and have found a couple, just not 100% sure which is the right one?

www/cmh/skins/default/icons/
www/luci-static/resources/icons/

Also why are some icon locations listed in the .JSON with a ‘\ /’ for the icon folder and file ?

[quote=“parkerc, post:4, topic:172348”]Does anyone know exactly where the /icons/ folder is that is mentioned in many of the .JSON file?

www/cmh/skins/default/icons/[/quote]

This one. I don’t know if the static JSON file can contain a host-relative URL like /etc/something. Even if it could, the web server inside Vera may not be able to see that directory. This is why I host my icons on my own web server and put an absolute URL starting with http.

Also why are some icon locations listed in the .JSON with a ' /' for the icon folder and file ?

You are supposed to escape slashes in JSON, but few do, and most JSON parsers are forgiving in what they accept.

thanks futzle, I’ve also used/test against a http URL and that seems ok, but I’d prefer not to have the responsibility of hosting the icon, especially of I want to share the jSON file with other. Looking in the JSON files listed in the Luup listing under dev Apps in UI5 I can see the following mentioned, which suggests the device files they are referenced in point to them for their icon image e.g. D_DoorSensor1.json which points to “flashicon”: “icons/door_sensor.swf”

Others…
D_genericsensor1.json = “flashicon”: “icons/Light_Sensor.swf”
D_temperaturesensor1.json = “flashicon”: “icons/Temperature_Sensor.swf”
D_virtualswitch1.json = “flashicon”: “icons/iconVSwitch.png”

Where are these icons stored. I found some in the links above, but they do not look right, and I could. It see any .swf ones ?

It’s explained here: http://wiki.micasaverde.com/index.php/Luup_plugin_icons

Great thanks futzle, it also answers the swf question too, as it was that bit that kept throwing me…