Skip to content

Instantly share code, notes, and snippets.

@6david9
Created January 7, 2014 02:59
Show Gist options
  • Save 6david9/8294024 to your computer and use it in GitHub Desktop.
Save 6david9/8294024 to your computer and use it in GitHub Desktop.
upload image using curl
#! /bin/bash
files='ls *.JPG'
for file in $files
do
filename="file=@$file"
curl -F "action=uploading" -F $filename http://path/to/uploadimg.do
echo "" #换行
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment