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

http-file-api: add package for uploading files #119

Closed
wants to merge 4 commits into from
Closed

Conversation

andrenarchy
Copy link
Member

@andrenarchy andrenarchy commented Sep 9, 2017

As outlined in freifunk-berlin/firmware#484 we need a way to upload (large) files. This PR adds a package with a cgi script that allows file uploads with ubus session authentication+authorization (requires ubus.file.write privileges).

Example curl request:

curl -H 'Authorization: UBUS_SESSION' \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @filename.bin \
  http://x.x.x.x/cgi-bin/files?filename=/tmp/firmware.bin

@booo
Copy link
Member

booo commented Nov 3, 2018

Closing this due to inactivity.

@booo booo closed this Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants