CC-5821: Airtime Analyzer: Ftp-uploaded folder doesn't get removed from organize

$_FILES does not store the original file path so we were losing the folder name.
Fixed by explicitly passing the full filepath in via the ftp-upload-hook.sh script
This commit is contained in:
drigato 2014-04-28 14:44:52 -04:00
parent d081ff10b2
commit fae5b15a9f
2 changed files with 16 additions and 7 deletions

View file

@ -28,7 +28,7 @@ post_file() {
api_key=$(awk -F "= " '/api_key/ {print $2}' $instance_conf_path)
until curl --max-time 30 $url -u $api_key":" -X POST -F "file=@${file_path}" -F "name=${filename}"
until curl --max-time 30 $url -u $api_key":" -X POST -F "file=@${file_path}" -F "full_path=${file_path}"
do
retry_count=$[$retry_count+1]
if [ $retry_count -ge $max_retry ]; then