Upload Problem

shamane

Grünschnabel
Hallo,

Ich weis das es hier schon sehr viele Beiträge wegen UPLOAD gibt,
aber ich hab einfach nicht das richtige gefunden.

Folgenen Fehler bekomm ich ausgegeben:

Warning: Unable to create 'http://www.axxx.de/vorschau/upload/mess_1.jpg': No such file or directory in /home/xxx/www/vorschau/test.php on line 11

Warning: Unable to move '/tmp/php3ddhGU' to 'xxx/vorschau/upload/mess_1.jpg' in /home/xxx/www/vorschau/test.php on line 11

ich habe einen einfachen CODE benuzt:

PHP:
$uploaddir = 'http://www.xxx.de/vorschau/upload/';

print "<pre>";
#Line 11
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) {
  
print "File is valid, and was successfully uploaded.  Here's some more debugging info:\n";
   print_r($_FILES);
} else {
   print "Possible file upload attack!  Here's some debugging info:\n";
   print_r($_FILES);
}
HTML:
<form enctype="multipart/form-data" action="#" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>

das Verzeichniss 'http://www.xxx.de/vorschau/upload/' existiert und hat 0777 Rechte
 
Ich glaube nicht wirklich, daß du nichts gefunden hast..
Der Pfad zum Verzeichnis für den Upload muß ein absoluter Pfad im Dateisystem sein, keine Angabe der URL im HTTP.
 
Zurück