diff options
author | 2009-08-10 17:09:56 -0400 | |
---|---|---|
committer | 2009-08-10 17:09:56 -0400 | |
commit | b60c7c57c227d326bb23c6c96e61cf6702a09ce5 (patch) | |
tree | c02c4fb04afb80ecbb041cc6d9c393c7f6658fa4 /frontend/pages/upload.php | |
parent | Have upload respond in plaintext, not HTML (so long as authentication succeeds) (diff) | |
download | ingenue-b60c7c57c227d326bb23c6c96e61cf6702a09ce5.tar.gz ingenue-b60c7c57c227d326bb23c6c96e61cf6702a09ce5.tar.bz2 ingenue-b60c7c57c227d326bb23c6c96e61cf6702a09ce5.zip |
Remove build- prefix from completed builds; todo
Diffstat (limited to 'frontend/pages/upload.php')
-rw-r--r-- | frontend/pages/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/pages/upload.php b/frontend/pages/upload.php index d8dd4ec..a854199 100644 --- a/frontend/pages/upload.php +++ b/frontend/pages/upload.php @@ -24,10 +24,10 @@ function body_upload(&$S) { debug('upload', 'Got uploaded file '.$_FILES['file']['name'].' at '.$_FILES['file']['tmp_name']); $name=basename($_FILES['file']['name']); $ext=substr($name, strpos($name, '.')); - debug('upload', $_FILES['file']['tmp_name'].' -> '.COMPLETED."/build-$build->id$ext"); + debug('upload', $_FILES['file']['tmp_name'].' -> '.COMPLETED."/$build->id$ext"); if (!is_writable(COMPLETED)) die('No write permissions'); - if (!move_uploaded_file($_FILES['file']['tmp_name'], COMPLETED."/build-$build->id$ext")) + if (!move_uploaded_file($_FILES['file']['tmp_name'], COMPLETED."/$build->id$ext")) die('Move file failed'); echo 'Upload successful'; } |