note 54241 added to features.file-upload
| From: | ruderida at stockad dot com | Date: | Tue, 28 Jun 2005 09:10:29 +0000 |
| Subject: | note 54241 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91065@lists.php.net to get a copy of this message | ||
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);
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54241
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54241&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54241&report=yes
Search -- http://master.php.net/manage/user-notes.php