Skip to content

Instantly share code, notes, and snippets.

@rbsgn
Last active January 19, 2024 23:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbsgn/183f8586f1fd59faa4cc55c3304ad728 to your computer and use it in GitHub Desktop.
Save rbsgn/183f8586f1fd59faa4cc55c3304ad728 to your computer and use it in GitHub Desktop.
upload videos to VLC running on iOS device
IP=10.0.1.18
for f in *; do
echo ">>> Uploading $f <<<"
curl \
--progress-bar \
--form "files[]=@$f" \
http://"$IP"/upload.json \
| tee -a vlc-ios-upload.log; test ${PIPESTATUS[0]} -eq 0
echo ">>> Done uploading <<<"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment