Device image wont change

Anthony Ta month ago

I know this may be a repeated thread, but i also see that there has been a lot of changes in the web app since the last time someone asked about this. I just installed a few weeks ago and have been testing since... but i was unable to change the vehicle/device image from the web app. I know the option is there, I tried clicking on the device, then Device Image, and there is an upload tool... when i upload the image the system automatically set the attribute name for me "device.png", i click Save, log out, log in again, and it does not change.... I also tried to set manually the attribute "device Image", and type the address of the image which i previously uploaded in my webserver, click save, log out, log in, and also nothing changed.

I tried doing this with an admin user, and also a non-admin user... the images i am testing are JPG and PNG, same result.

images location are:
https://clouddatatech.net/vehicles/mitsubishi-l300.jpg
https://clouddatatech.net/vehicles/mitsubishi-l300.png

I am sharing the images just to double check if there is a specific format needed. am i missing something here? please let me know. Thanks!

Anton Tananaeva month ago

I don't think we support external URLs. You have to figure out what's going on with the upload.

Anthony Ta month ago

where should the image goes when uploading? so i can check the server? also, is there a log for this?

Anton Tananaeva month ago

It should be in the media folder. Also check the API call result.

Anthony Ta month ago

ok images are in the media folder, each one under a folder named after the device id.

This is the response from the api call:

1	
id	4
attributes	
deviceImage	"device.png"
groupId	0
calendarId	0
name	"Mitsubishi Panel"
uniqueId	"xxxxxxxxxxx5497"
status	"online"
lastUpdate	"2024-10-17T18:03:45.000+00:00"
positionId	792
phone	null
model	"L300"
contact	null
category	null
disabled	false
expirationTime	null

i also tested copying the image to the "web" folder but same result.

Anton Tananaeva month ago

And it still doesn't show? What does it show? Screenshot please.

Anthony Ta month ago

traccar 2024-10-17 152306.png

Anton Tananaeva month ago

Any errors in the browser console?

Anthony Ta month ago

no errors, only one warning

traccar 2.png

Anton Tananaeva month ago

Did it download the image?

Anthony Ta month ago

what? the browser? sorry, i don't understand the question

Anton Tananaeva month ago

Yes, the browser. Check network tools.

Anthony Ta month ago

oh ok, seems like it's not asking for it... i only see on the network tab (filtered images only) apple-touch-icon-180x180 once, favicon twice, and a bunch of google images, which i assume corresponds to the maps.

Anthony Ta month ago

Ok sorry, there is actually an error, i just saw that it happens when i click on the device. here is the console error:

https://tracking.clouddatatech.net/api/media/868022033625497/device.png
[HTTP/1.1 404 Not Found 47ms]

Status
404
Not Found
VersionHTTP/1.1
Transferred346 B (90 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHigh
DNS ResolutionSystem
Anton Tananaeva month ago

Does this file actually exist /media/868022033625497/device.png?