Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FarmOs log API returns invalid file url's #56

Closed
ugeshdg opened this issue Feb 1, 2022 · 1 comment
Closed

FarmOs log API returns invalid file url's #56

ugeshdg opened this issue Feb 1, 2022 · 1 comment

Comments

@ugeshdg
Copy link

ugeshdg commented Feb 1, 2022

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.

@ugeshdg ugeshdg changed the title FarmOs API invalid file url's FarmOs log API returns invalid file url's Feb 1, 2022
@paul121
Copy link
Member

paul121 commented Feb 2, 2022

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.

@paul121 paul121 closed this as completed Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants