access to the /api/media path is prohibited even when logged in.

Image and audio files are being stored in the /media folder and accessed through api/media/example.jpg

But the system informs that it is a forbidden path, even though the user is an administrator.

Anton Tananaev2 years ago

Your example is invalid.

Hi Anton, thanks for replying.

What happens: I store an image in the /opt/traccar/media folder (example foto.png), access the system through the login form, and when trying to access this image through http://localhost:8082/api/media/foto.png the system returns forbidden.

Anton Tananaev2 years ago

It seems like you're trying to do some customization, which is not supported by the standard Traccar API. You should change the API.

I'm not actually customizing.

I'm simply copying via linux a file directly to the /opt/traccar/media folder and trying to get (after logging into the system) via the path http://localhost:8082/api/media/archivecopied.png

How does traccar storage in the media folder work?

Anton Tananaev2 years ago

It works per device.

Ok, I got it!! Thanks for the feedback and God bless!