Commit bc39ab25 by sopham

the avatar

parent 6eede0c5
Showing with 1 additions and 1 deletions
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
//save source and target to variables //save source and target to variables
$sourcePath = $_FILES['file']['tmp_name']; $sourcePath = $_FILES['file']['tmp_name'];
$targetPath = "upload/".basename($_SESSION['name'].'.'.end((explode(".", $_FILES['file']['name'])))); $targetPath = "upload/".$_FILES['file']['name'];
//move uploaded file to target folder //move uploaded file to target folder
if(move_uploaded_file($sourcePath, $targetPath)) { if(move_uploaded_file($sourcePath, $targetPath)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment