Skip to content

πŸ“¦ CLI tool for uploading images on your clipboard to FTP servers with emoji names! πŸ˜†πŸ˜˜πŸ˜‚

Notifications You must be signed in to change notification settings

Xetera/ftp-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ftp-Uploader

Small script for automatically uploading screenshots in the clipboard to FTP servers Now with 🀴πŸ₯ΆπŸ˜™πŸ€πŸ‘³πŸ’‘ support

Example: https://mamamoo.xetera.dev/πŸ˜«πŸ‘ŠπŸ‘΅πŸ™€πŸ‘„πŸ˜ƒ.png

Only available for Linux and maybe... Mac? not sure. If you're on Windows just use the almighty ShareX, you don't have to mess with silly scripts like these (although ShareX still doesn't support emojis πŸ˜‰).

Supports Bunny CDN

Setup

  1. git clone https://github.com/Xetera/Ftp-Uploader.git
  2. sudo apt install xclip
  3. cd Ftp-Uploader
  4. Fill in config.sh
  5. For ease of use with flameshot, bind flameshot.sh to a shortcut of your choice. ...or using whatever other option non-ubuntu people have.
  6. πŸŽ‰ (I hope)

Setttings

Fill in your settings in config.sh

  • USERNAME

    • FTP username OR for Bunny CDN, the name of your storage zone, you can find this in the Username part of the FTP & API Access page
  • PASSWORD

    • FTP password OR your API key for Bunny CDN
  • BASE_REDIRECT_URL

    • The base url you want to be redirected ot after you download (this link automatically gets pasted into your clipboard after the upload, much like how ShareX works)
  • FILE_NAME_LENGTH

    • The amount of random characters for the file name to have. By default generates random alphanumeric, lower + capital letters.
  • UPLOAD_PATH

    • The folder that you want the image to be uploaded to (root by default)

Options

  • -q Makes output quiet
  • -w Opens the link in a new window or tab after uploading
  • -e πŸ‘Œ Gives your file a name with emojis, otherwise alphanumeric letters πŸ’―

The redirect will be in the form of:

BASE_REDIRECT_URL/filename.png

Note:

The total possibility of usable emojis have been reduced as some emojis are made up of other emojis like this one πŸ’†β€β™€οΈ which can look bad on certain devices.

Important:

Copying urls with emojis in Google Chrome (and possibly others) will give you weirdly encoded urls, I don't know how you can get around this as of now.

Other screenshot tools

To integrate with other screenshot tools, combine the command with:

screenshot-tool-here && bash $(dirname "$0")/bunny.sh

Make sure the screenshot command exits before executing the uploader. The --raw option for flameshot is used for this purpose as flameshot does not wait for the screenshot to be taken before exiting the command without it.

About

πŸ“¦ CLI tool for uploading images on your clipboard to FTP servers with emoji names! πŸ˜†πŸ˜˜πŸ˜‚

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages