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

Michaell Oliveira 3 years ago

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 Tananaev 3 years ago

Your example is invalid.

Michaell Oliveira 3 years ago

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 Tananaev 3 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.

Michaell Oliveira 3 years ago

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 Tananaev 3 years ago

It works per device.

Michaell Oliveira 3 years ago

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