Bepasty is an awesome way to share files using the browser.
Another way to access bepasty is from terminal using pastebinit.
Bepasty project support this method as it is included in the official documentation.
Unfortunately I cannot make it work on Freedombox.
Problem Description
When I try to upload a file using the above method. I gen an error:
Failed to contact the server: HTTP Error 405: METHOD NOT ALLOWED
Steps to Reproduce (in my personal Computer)
- create file ~/.pastebinit.xml:
<pastebinit>
<pastebin>https://myfboxdomain.org/bepasty</pastebin>
<format></format>
</pastebinit>
- create file ~/.pastebin.d/bepasty.conf:
[pastebin]
basename = myfboxdomain.com/bepasty
regexp = https://myfboxdomain.com/bepasty
[format]
content = text
title = filename
format = contenttype
page = page
password = token
[defaults]
page = +upload
- run the command:
pastebinit -t example.txt -p yourpassword -i example.txt
where yourpassword is the admin password from myfboxdomain.com/apps/bepasty
Expected Results
terminal must return me an upload url and actually upload the file
Actual results
Failed to contact the server: HTTP Error 405: METHOD NOT ALLOWED
Information
- FreedomBox version: 24.8
- Hardware: Freedombox Pioneer
P.S.: If there is another cli method that a dev/user is using successfully please let me know.