summaryrefslogtreecommitdiff
path: root/various/dirup
blob: 20938d79c52d308176a6b15e12d04edd09d1a581 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

uname=""
psswd=""
rdir="${1:-/}"
fn="${2:-$PWD}"

echo $rdir/$fn
curl -F "$rdir/$2=@$2" "https://$uname:$psswd@neocities.org/api/upload"