Ben php benim yerel ana klasöre dosya yüklemek mümkün duyuyorum

0 Cevap file-upload

Ben follwing kod var

<form enctype="multipart/form-data" action="upload.php" method="POST">
 Please choose a file: <input name="uploaded" type="file" /><br />
 <input type="submit" value="Upload" />
 </form>  

<?php 
 $target = "upload/"; 
 $target = $target . basename( $_FILES['uploaded']['name']) ; 
 $ok=1; 
 if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) 
 {
 echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
 } 
 else {
 echo "Sorry, there was a problem uploading your file.";
 }
 ?> 

Benim sayfa http://local.host/nausal/upload.php içinde

i ad upload sitesinde bir klasör oluşturduk olsa şimdi ben follwing hatayı yaşıyorum.

Notice: Undefined index: C tarih: \ wamp \ www \ Nausal \ upload.php 15 hattı üzerinde

Notice: Undefined index: uploaded in C:\wamp\www\Nausal\upload.php on line 17 Sorry, there was a problem uploading your file.

0 Cevap