Upload a file from shell to file sharing hosting

I often sharing my files with use a file hosting. :) But I don’t like use a browser for it. Now I’ve wrote the function for my .zshrc.

function zalil(){
    if [ -n "" -a -f "" ];then
        if  [ "