You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to incorporate a headless filebrowser as a simple app that would simply give me public urls (hash) for files that are mounted on read-only directory. so far i was able to extract the API calls for
login http://192.168.0.15:8080/api/login
Creating a new share link POST http://192.168.0.15:8080/api/share/[path/to/file.pdf]?expires=1&unit=hours
getting the unique id of file GET http://192.168.0.15:8080/api/share/[path/to/file.pdf]
deleting a share link DELETE http://192.168.0.15:8080/api/share/[unique_hash_of_file]
direct download a file http://192.168.0.15:8080/api/public/dl/[unique_hash_of_file]
However, I'm struggling to find a way to incorporate the random characters of words obtained when logging in. I believe this is a cookie/auth_token that I need to pass every time I perform operations to a file. Can someone please help me with this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to incorporate a headless filebrowser as a simple app that would simply give me public urls (
hash
) for files that are mounted on read-only directory. so far i was able to extract the API calls forhttp://192.168.0.15:8080/api/login
POST http://192.168.0.15:8080/api/share/[path/to/file.pdf]?expires=1&unit=hours
GET http://192.168.0.15:8080/api/share/[path/to/file.pdf]
DELETE http://192.168.0.15:8080/api/share/[unique_hash_of_file]
http://192.168.0.15:8080/api/public/dl/[unique_hash_of_file]
However, I'm struggling to find a way to incorporate the random characters of words obtained when logging in. I believe this is a cookie/auth_token that I need to pass every time I perform operations to a file. Can someone please help me with this?
Beta Was this translation helpful? Give feedback.
All reactions