0
您好我在的index.php以下表格PHP的形式操作後重定向dropzonejs
<form action="file1.php?arg=<?php echo $id ?>"
class="dropzone"
id="my-awesome-dropzone">
</form>
在index.php
我也有
if (!isset($_SESSION['logged-in']) || $_SESSION['logged-in'] !== true) {
header('Location: file.php');
exit;
}
的file1.php如下
$ds = DIRECTORY_SEPARATOR; //1
$storeFolder = 'dir'.$id; //2
if (!empty($_FILES)) {
$tempFile = $_FILES['file']['tmp_name']; //3
$targetPath = dirname(__FILE__) . $ds. $storeFolder . $ds; //4
$targetFile = $targetPath. $_FILES['file']['name']; //5
move_uploaded_file($tempFile,$targetFile); //6
}
如何將move_uploaded_file完成後重定向到mytest.php文件?
THX提前
沒有它不工作 – kosbou 2013-05-12 20:29:49
是上傳的文件移動? – ajtrichards 2013-05-12 20:45:27
是移動的文件 – kosbou 2013-05-12 20:57:28