Uploader

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Uploader

    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
    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="&#39;http://nahsorhseda.wen9.com/&#39;><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="&#39;http://nahsorhseda.wen9.com/&#39;><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="&#39;http://nahsorhseda.wen9.com/&#39;><img"][/url]
    ";
    
          }
    
        }
    
      }
    
    else
    
      {
    
      echo "Invalid file";
    
    echo"[url="&#39;http://nahsorhseda.wen9.com/&#39;><img"][/url]
    ";
    
      }
    
    ?>

    #2
    hasnt this been posted sumwer else to be fixd? !!
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #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...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment

      Working...
      X