note 18793 added to features.file-upload

From: Date: Tue, 05 Feb 2002 23:04:13 +0000
Subject: note 18793 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-26275@lists.php.net to get a copy of this message
There seems to be something weird going on when uploading a picture and it's headers. If a file is created on the server through move or copy - the file can apparently only be seen and used through the img tag in html. So in other terms - you create a database entry (id, name, whatever) for the upload, and construct the name of the uploaded picture that way. Refer or call it by the IMG tag - it will show correctly. When trying to open the file independently in a browser or GIMP or Photoshop - there seems to be something wrong with the header of the file, and the application will not show the picture. Maybe this is a bug, dunno - but it is something strange that kept me searching for some time :( -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+18793 http://master.php.net/manage/user-notes.php?action=delete+18793 http://master.php.net/manage/user-notes.php?action=reject+18793

« previous php.notes (#26275) next »