R: [PHP-WIN] Upload
| From: | Darvin Andrioli | Date: | Thu, 23 Aug 2001 07:39:28 +0000 |
| Subject: | R: [PHP-WIN] Upload | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9010@lists.php.net to get a copy of this message | ||
Hi Daniel
Are the file size less then the parameter "upload_max_filesize"?
Darvin
> -----Messaggio originale-----
> Da: Sichta Daniel [mailto:Daniel.Sichta@swh.sk]
> Inviato: giovedi 23 agosto 2001 9.23
> A: php-windows@lists.php.net
> 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:Daniel.Sichta@swh.sk
> <mailto:Daniel.Sichta@swh.sk>
> http://www.swh.sk
> <http://www.swh.sk/>
>
>
>