Upload

From: Date: Thu, 23 Aug 2001 07:22:33 +0000
Subject: Upload
Groups: php.windows 
Request: Send a blank email to php-windows+get-9009@lists.php.net to get a copy of this message
Hi there, cfg: w2k, Apache 1.3.20, php 4.04.pl1 I have his code: <form method="POST" action="<?=$PHP_SELF ?>" enctype="multipart/form-data"> <input type="file" name="media" size="40" maxlenght="150"> <input type="submit" value="Submit" name="upload"> </form> <? if ($upload) { copy ($media, "c:\tmp"); } ?> This works fine for files with jpg and gif extensions but gives me error on mp3 or wav. Should I set something different ? error: Warning: Unable to open 'none' for reading: No such file or directory in upload.php on line 103 - that is copy function Thank you Ing. Daniel Šichta SWH s.r.o. Bytčická 2 010 01 Žilina tel.: +421 41 505 5855 fax: +421 41 500 1376 mailto:Daniel.Sichta@swh.sk <mailto:Daniel.Sichta@swh.sk> http://www.swh.sk <http://www.swh.sk/>

« previous php.windows (#9009) next »