url and API key are hard coded right now. Next task is to somehow decipher these with whatever ftp parameters we can pass in to the scipt.
5 lines
148 B
Bash
Executable file
5 lines
148 B
Bash
Executable file
#! /bin/bash
|
|
|
|
path=$1
|
|
filename="${path##*/}"
|
|
curl http://localhost/rest/media -u 3188BDIMPJROQP89Z0OX: -X POST -F "file=@$path" -F "name=$filename"
|