Skip to content

Ways to Upload

Alexander Craggs edited this page Jun 8, 2020 · 2 revisions

Using ShareX

ShareX allows you to quickly and easily capture screenshots of your desktop and upload them. Using Femto Host you can share images, upload videos, shorten URLs and post text snippets.

Setup:

  1. Install ShareX
  2. Download the following URLs:
  3. Click on each to activate them in ShareX

If you use a different host, you will need to alter the base of the URLs above.

Uploading from Bash:

You can post any file to Femto using:

$ curl -F "upload=@'UPLOAD_PATH'" https://femto.pw/upload

Replacing UPLOAD_PATH with the path to the file you want to upload. You can include your API_KEY as another argument in order to upload it to your account, instead of anonymous.

$ curl -F "apiKey=API_KEY" -F "upload=@'UPLOAD_PATH'" https://femto.pw/upload

You can also add -F "short=true" in order to request a shorter response URL, instead of the default long URL.

Clone this wiki locally