diff options
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'; } |