fix remote upload
This commit is contained in:
parent
a53f52696e
commit
d57dcc5e6e
3
post.php
3
post.php
@ -320,6 +320,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$_FILES['file'] = array(
|
$_FILES['file'] = array(
|
||||||
'name' => basename($url_without_params),
|
'name' => basename($url_without_params),
|
||||||
'tmp_name' => $post['file_tmp'],
|
'tmp_name' => $post['file_tmp'],
|
||||||
|
'file_tmp' => true,
|
||||||
'error' => 0,
|
'error' => 0,
|
||||||
'size' => filesize($post['file_tmp'])
|
'size' => filesize($post['file_tmp'])
|
||||||
);
|
);
|
||||||
@ -704,7 +705,7 @@ if (isset($_POST['delete'])) {
|
|||||||
chmod($file['file'], 0644);
|
chmod($file['file'], 0644);
|
||||||
} elseif (!@move_uploaded_file($file['tmp_name'], $file['file']))
|
} elseif (!@move_uploaded_file($file['tmp_name'], $file['file']))
|
||||||
error($config['error']['nomove']);
|
error($config['error']['nomove']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['image_reject_repost']) {
|
if ($config['image_reject_repost']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user