Skip to content

Instantly share code, notes, and snippets.

@photo
Created October 9, 2011 19:39
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save photo/1274061 to your computer and use it in GitHub Desktop.
Save photo/1274061 to your computer and use it in GitHub Desktop.
Upload all photos from a directory using command line (openphoto-php - https://github.com/openphoto/openphoto-php)
#!/bin/sh
source secrets.sh
for i in $(ls /path/to/directory/*.JPG) ; do
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST;
done
@Bunchheang
Copy link

I like this www.qoosi.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment