Hi Daniel Are the file size less then the parameter "upload_max_filesize"? Darvin > -----Messaggio originale----- > Da: Sichta Daniel [mailto:[EMAIL PROTECTED]] > Inviato: giovedi 23 agosto 2001 9.23 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] Upload > > > 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:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > http://www.swh.sk <http://www.swh.sk/> > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]