Hai iam using the following code to upload the file its upload word and xls and image file properly but its unable to upload pdf and application type file............like exe and winrar............
$filename=$_FILES["file"]["name"];
$random_digit=rand(0000,9999);
//$newname = 'Upload\$filename';
$path = 'Upload/'.$random_digit.$filename;
echo $path;
$newpath= move_uploaded_file($_FILES["file"]["tmp_name"],$path);
Thanks
Unable to upload pdf and exe format file type .........
Moderator: General Moderators
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Unable to upload pdf and exe format file type .........
i need help to upload exe and pdf file format .....................
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: Unable to upload pdf and exe format file type .........
Its working in linux server but unable to wamp server why....................
pl help why this is having problem or we have to set any php.ini file
pl help why this is having problem or we have to set any php.ini file