note 54241 rejected from features.file-upload by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 28 Jun 2005 09:19:06 +0000 |
| Subject: | note 54241 rejected from features.file-upload by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91067@lists.php.net to get a copy of this message | ||
Note Submitter: rude rida at stockad dot com
----
i have my simple script to upload files into my server, it worked fine on jpg's gif's
txt's but not wav's and mp3's and all kind of audio format.
Can any one help me with it
i tested on my real server and on my local server but same problem
this is my code
<?
if (isset($_FILES['Field']['tmp_name']))
{
$xxx = $_FILES['Field']['name'];
list($name,$extension) = split ('[.]', $xxx);
$filename = date("ymdhis").".".$extension;
if (is_uploaded_file($_FILES['Field']['tmp_name']))
{
move_uploaded_file($_FILES['Field']['tmp_name'], PATH.$filename);
}
}
?>