Uploader

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

2 replies · 643 views · started 19 years ago · 1 min read

2 participants
Guest #1

can any one please create an uploader for  jar jad and sis file upload jpeg and other media files work well ,my host supports all these file formats but iam not able to upload any jar jad and sis file

heres the code

<?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"] . "
";

echo"[url="'http://nahsorhseda.wen9.com/'><img"][/url]
";

    }

  else

    {

    echo "Upload: " . $_FILES["file"]["name"] . "
";

    echo "Type: " . $_FILES["file"]["type"] . "
";

    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
";

    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "
";

    if (file_exists("wapbuddy/sis_apps/" . $_FILES["file"]["name"]))

      {

      echo $_FILES["file"]["name"] . " already exists. ";

echo"[url="'http://nahsorhseda.wen9.com/'><img"][/url]
";

      }

    else

      {

      move_uploaded_file($_FILES["file"]["tmp_name"],

      "wapbuddy/sis_apps/" . $_FILES["file"]["name"]);

      echo "Stored in: " . "downloadmanager/sis_apps/" . $_FILES["file"]["name"];

      echo"[url="'http://nahsorhseda.wen9.com/'><img"][/url]
";

      }

    }

  }

else

  {

  echo "Invalid file";

echo"[url="'http://nahsorhseda.wen9.com/'><img"][/url]
";

  }

?>
subzero Super moderator Fellow · 3,954 posts #3

Yes it has!

why not use GUMXCHANGER!!

search gumslone_xchanger

topic closed

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close