update
This commit is contained in:
18
smartadmroot/upload.php
Normal file
18
smartadmroot/upload.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$ds = DIRECTORY_SEPARATOR; //1
|
||||
|
||||
$storeFolder = 'uploads'; //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
|
||||
|
||||
}
|
||||
?>
|
||||
<!--- See more at: http://www.startutorial.com/articles/view/how-to-build-a-file-upload-form-using-dropzonejs-and-php#sthash.APTCQ8nP.dpuf-->
|
||||
Reference in New Issue
Block a user