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.
Good timing, I am making an uploader site and I have made a fairly simple uploader. Pm for more details
Thanks guys but just downloaded one from the following website. http://www.mihalism.com/mihalism-multi-host Thank you.
<?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
I've got one now, all installed and working correctly. Thank you for displaying your code anyway, Marc. Thanks again.
I have used this script on one of our site its good one with admin panel http://www.free-php-scripts.net/P/Free_Image_Hosting
i made a site image hosting here is the site and iMuploader.com pm me if intrested i can make you one