[PHP] Uploaded File by Form is mysteriously away.
Hi, I'm trying to upload a pic file by form (Using QuickForm, but this here also happens in manually generates Forms). Everything seems to work fine. The $_FILES[formfile] shows everything about the file what is needed to know. For example: Array ( [formfile] = Array ( [name] = lindworm.jpg [type] = image/pjpeg [tmp_name] = /srv/www/htdocs/tmp/phpTLREuE [error] = 0 [size] = 15101 ) ) With this information I now try to make move_uploaded_file($_FILE[formfile], /srv/www/htdocs/img/.$_FILE[formfile][name]) . This also seem to work, because it gives no error back. Both directories are writeable by php. I also use this dirs on other Sites to generate file inside. But and that's the problem. The File does not appear in TMP-DIR and not at Destination dir. It is just nowhere. I am Using php-4.3.4 and Apache 2 on SuSE9.1. Fileupload is active in php.ini and phpinfo(); tells me the same. Has anybody an Idea please what also could be wrong. Greetings Mirco Blitz
Re: [PHP] Uploaded File by Form is mysteriously away.
Mirco Blitz wrote: Hi, I'm trying to upload a pic file by form (Using QuickForm, but this here also happens in manually generates Forms). Everything seems to work fine. The $_FILES[formfile] shows everything about the file what is needed to know. For example: Array ( [formfile] = Array ( [name] = lindworm.jpg [type] = image/pjpeg [tmp_name] = /srv/www/htdocs/tmp/phpTLREuE [error] = 0 [size] = 15101 ) ) With this information I now try to make move_uploaded_file($_FILE[formfile], /srv/www/htdocs/img/.$_FILE[formfile][name]) . move_uploaded_file($_FILE[formfile]['tmp_name'], ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
AW: [PHP] Uploaded File by Form is mysteriously away.
Oh sorry, that move_uploaded_file is surely used with FILE[formfile]['tmp_name'] That was an error in Mail Typing. Problem still exists. Mirco Blitz -Ursprüngliche Nachricht- Von: Marek Kilimajer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Februar 2005 00:12 An: Mirco Blitz Cc: php-general@lists.php.net Betreff: Re: [PHP] Uploaded File by Form is mysteriously away. Mirco Blitz wrote: Hi, I'm trying to upload a pic file by form (Using QuickForm, but this here also happens in manually generates Forms). Everything seems to work fine. The $_FILES[formfile] shows everything about the file what is needed to know. For example: Array ( [formfile] = Array ( [name] = lindworm.jpg [type] = image/pjpeg [tmp_name] = /srv/www/htdocs/tmp/phpTLREuE [error] = 0 [size] = 15101 ) ) With this information I now try to make move_uploaded_file($_FILE[formfile], /srv/www/htdocs/img/.$_FILE[formfile][name]) . move_uploaded_file($_FILE[formfile]['tmp_name'], .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php