farmOS / farmOS.py

A Python library for interacting with farmOS over API.
GNU General Public License v3.0
27 stars 12 forks source link

FarmOs log API returns invalid file url's #56

Closed ugeshdg closed 9 months ago

ugeshdg commented 2 years ago

I uploaded a file in logs. When i fetched the logs i got the below URL for images key. "images": [ { "file": { "id": "1", "resource": "file", "uri": "http://www/file/1" } } ], The "http://www/file/1" is invalid file path the actual file path is "http://www/sites/default/files/farm/log/observation/farm.jpeg". someone please help me to get the proper url from logs.

paul121 commented 2 years ago

Hi @ugeshdg it seems that you might be using farmOS v1?

I think this was reported here #41 (but with no solution). You might want to check #40 as well, I believe this would have been a step towards adding file support in v1.