From d57dcc5e6e786a2122c80e0e5074ab8390a73c1b Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 29 Apr 2014 20:50:28 +0200 Subject: [PATCH] fix remote upload --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index 907bd433..12584c51 100644 --- a/post.php +++ b/post.php @@ -320,6 +320,7 @@ if (isset($_POST['delete'])) { $_FILES['file'] = array( 'name' => basename($url_without_params), 'tmp_name' => $post['file_tmp'], + 'file_tmp' => true, 'error' => 0, 'size' => filesize($post['file_tmp']) ); @@ -704,7 +705,7 @@ if (isset($_POST['delete'])) { chmod($file['file'], 0644); } elseif (!@move_uploaded_file($file['tmp_name'], $file['file'])) error($config['error']['nomove']); - } + } } if ($config['image_reject_repost']) {