itsolution/webedit/imageUpload/delete.php
2021-10-26 18:21:20 +09:00

20 lines
412 B
PHP

<?php
/*
require_once("config.php");
// ---------------------------------------------------------------------------
$filepath = $_POST["filepath"];
$r = false;
if (file_exists($filepath)) {
$r = unlink($filepath);
if ($r) {
$thumbPath = dirname($filepath) . DIRECTORY_SEPARATOR . "thumb_" . basename($filepath);
if (file_exists($thumbPath)) {
unlink($thumbPath);
}
}
}
echo $r ? true : false;
*/
?>