nahsorhseda
Member
- Messages
- 116
- Reaction score
- 0
- Points
- 16
does any one get a upload error ...i am not able to upload jar,jad and sis files
but iam able to upload all other media and other files ,iam usin php intermediate configuration
i thougth of making this uploader so that i can upload stuff even from my cell phone
can u please tell me whats wrong with my uploader script below
and thanks in advance
but iam able to upload all other media and other files ,iam usin php intermediate configuration
i thougth of making this uploader so that i can upload stuff even from my cell phone
can u please tell me whats wrong with my uploader script below
PHP:
<?php
if (($_FILES["file"]["type"] == "application/java")
|| ($_FILES["file"]["type"] == "application/java-archive")
|| ($_FILES["file"]["type"] == "text/vnd.sun.j2me.app-descriptor")
|| ($_FILES["file"]["type"] == "application/x-java-archive")
|| ($_FILES["file"]["type"] == "application/vnd.symbian.install")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg")
&& ($_FILES["file"]["size"] < 200000000000000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
echo"<a href='http://nahsorhseda.wen9.com/'><img src='http://c.wen.ru/256908.wbmp?Nahsorhsed' alt='?????? ????! Create site!'/></a><br/>";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";
if (file_exists("wapbuddy/sis_apps/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
echo"<a href='http://nahsorhseda.wen9.com/'><img src='http://c.wen.ru/256908.wbmp?Nahsorhsed' alt='?????? ????! Create site!'/></a><br/>";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"wapbuddy/sis_apps/" . $_FILES["file"]["name"]);
echo "Stored in: " . "downloadmanager/sis_apps/" . $_FILES["file"]["name"];
echo"<a href='http://nahsorhseda.wen9.com/'><img src='http://c.wen.ru/256908.wbmp?Nahsorhsed' alt='?????? ????! Create site!'/></a><br/>";
}
}
}
else
{
echo "Invalid file";
echo"<a href='http://nahsorhseda.wen9.com/'><img src='http://c.wen.ru/256908.wbmp?Nahsorhsed' alt='?????? ????! Create site!'/></a><br/>";
}
?>
and thanks in advance
Last edited: