Looking for a Image Uploader script

Discussion in 'Scripts' started by tokyoice, Apr 4, 2008.

  1. #1
    I'm looking for an image uploader script for my website, I'm not too bothered about ''big'' features, just it uploads, pastes codes and looks fair nice.

    I'd really love an ajax powered one but any will do to be honest.

    Thank you.
     
    tokyoice, Apr 4, 2008 IP
  2. strokemymouse

    strokemymouse Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Good timing, I am making an uploader site and I have made a fairly simple uploader. Pm for more details :D
     
    strokemymouse, Apr 4, 2008 IP
  3. redlorry919

    redlorry919 Peon

    Messages:
    384
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
  4. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #4
    i got one here, low priced, just the right amount of features.
     
    sawz, Apr 4, 2008 IP
  5. tokyoice

    tokyoice Well-Known Member

    Messages:
    3,327
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    165
    #5
    tokyoice, Apr 5, 2008 IP
  6. Tom12361

    Tom12361 Active Member

    Messages:
    442
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Who can offer more? I don't like mihalism. And it must be free
     
    Tom12361, Apr 5, 2008 IP
  7. genesisxxx

    genesisxxx Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thank you.
     
    genesisxxx, Apr 5, 2008 IP
  8. Marc Fraser

    Marc Fraser Peon

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    
    
    <?php 
    
    $do = $_GET['do'];
    
    if(isset($do) && $do != NULL && $do == "upload") {
    
    
    
    //set where you want to store files
    //in this example we keep file in folder upload 
    //$HTTP_POST_FILES['ufile']['name']; = upload file name
    //for example upload file name cartoon.gif . $path will be upload/cartoon.gif
    $path = "../cms-images/".$HTTP_POST_FILES['ufile']['name'];
    if($ufile !=none)
    {
    if (($HTTP_POST_FILES['ufile']['type']=="image/gif") || ($HTTP_POST_FILES['ufile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['ufile']['type']=="image/jpeg") || ($HTTP_POST_FILES['ufile']['type']=="image/png")) {
    if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
    {
    echo "Successful<BR/>"; 
    
    //$HTTP_POST_FILES['ufile']['name'] = file name
    //$HTTP_POST_FILES['ufile']['size'] = file size
    //$HTTP_POST_FILES['ufile']['type'] = type of file
    echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>"; 
    echo "File Size :".$HTTP_POST_FILES['ufile']['size']."<BR/>"; 
    echo "File Type :".$HTTP_POST_FILES['ufile']['type']."<BR/>"; 
    echo "<img src=\"$path\" alt=\"\">";
    echo '<h5>File Location: ../cms-images/' . $HTTP_POST_FILES['ufile']['name'] . '</h5>';
    }
    else
    {
    echo "Error";
    }
    } else {
    echo "Incorrect File Type";
    }
    }
    
    } else { ?>
    <form action="?do=upload" method="post" enctype="multipart/form-data">
    <label for="file">Filename:</label>
    <p>If you are uploading an image for the picture next to the description, please make sure it's 150x150px. Thanks!</p>
    <input type="file" name="ufile" id="ufile" /> 
    <br />
    <input type="submit" name="submit" value="Submit" />
    </form>
    
    <?php 
    
    }
    ?>
    
    Code (markup):
    Thats one that I done really quickly in about 2 mins. I will be creating another version that lets you upload to multiple directorys sometime tonight or tomorrow.

    Hope this is what your looking for.

    Cheers
    Marc
     
    Marc Fraser, Apr 6, 2008 IP
  9. tokyoice

    tokyoice Well-Known Member

    Messages:
    3,327
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    165
    #9
    I've got one now, all installed and working correctly.

    Thank you for displaying your code anyway, Marc. :)

    Thanks again.
     
    tokyoice, Apr 7, 2008 IP
  10. marketingprofessionals

    marketingprofessionals Banned

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    marketingprofessionals, Apr 7, 2008 IP
  11. Tom12361

    Tom12361 Active Member

    Messages:
    442
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #11
    MarketingPro - I can't download this script :(
     
    Tom12361, Apr 8, 2008 IP
  12. tokyoice

    tokyoice Well-Known Member

    Messages:
    3,327
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    165
    #12
    tokyoice, Apr 8, 2008 IP
  13. gafadi

    gafadi Peon

    Messages:
    759
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    i made a site image hosting here is the site and iMuploader.com pm me if intrested i can make you one
     
    gafadi, Apr 12, 2008 IP
  14. waziuz

    waziuz Active Member

    Messages:
    783
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #14
    waziuz, Apr 13, 2008 IP