Fix PHP warning about is_uploaded_file()
This commit is contained in:
parent
e7ca8bfa12
commit
a2f7e176c6
@ -117,7 +117,7 @@ function upload($files, $albumID) {
|
|||||||
$data = $data[0];
|
$data = $data[0];
|
||||||
|
|
||||||
// Import if not uploaded via web
|
// Import if not uploaded via web
|
||||||
if (!is_uploaded_file($file)) {
|
if (!is_uploaded_file($tmp_name)) {
|
||||||
if (copy($tmp_name, "../uploads/big/" . md5($id) . ".$data")) {
|
if (copy($tmp_name, "../uploads/big/" . md5($id) . ".$data")) {
|
||||||
unlink($tmp_name);
|
unlink($tmp_name);
|
||||||
$import_name = $tmp_name;
|
$import_name = $tmp_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user