Your IP: 54.224.162.138 

You can upload ZIP file of all your images in one shoot.

  • You can upload ZIP file of all your images in one shoot.
  • You can create zip file for image, doc file and other file.
  • This script find only jpg file uploaded and other file deleted.
  • You can set which extension allowed or not allowed using this script uploaded.
Download Source Code
 

View Comment
Post Date: Jun 19, 2009 02:16:29
Asif D. Khalyani says:
Comment:
User can upload multiple Images using one zip file through.

Good Script.........
Post Date: Aug 11, 2009 07:22:53
thulsidhar says:
Comment:
This is thulsidhr: when I was uplaod the imges zip file folowing errors are occured please check this other than good this site.

thulsidhar@ymail.com

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/) [function.unlink]: Is a directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/1.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/1.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/2.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/2.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/3.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/3.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/4.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/4.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/5.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/5.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/6.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/6.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36



Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/7.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33



Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/friends/7.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Post Date: Aug 14, 2009 03:33:17
sunil says:
Comment:
Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/) [function.unlink]: Is a directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SM74360.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SM74360.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SM81247.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SM81247.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SR32119.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/18-SR32119.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/19-SM74331.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/19-SM74331.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/19-SM78341.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/19-SM78341.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM74334.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM74334.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM78009.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM78009.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM86139.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SM86139.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36

Warning: copy(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SR32064.jpg) [function.copy]: failed to open stream: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 33

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/asif_php/ajax/upload-tmp/image/20-SR32064.jpg) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/asif_php/ajax/upload-image-zip.html on line 36
Post Date: Aug 23, 2009 12:49:24
Asif D. Khalyani says:
Comment:
thulsidhr & Sunil  

You can check first 
<?php
if(is_file()  
{
   
unlink("FILE PATH");    
}

?>
Post Date: Jan 12, 2010 05:10:52
paul says:
Comment:
hi im paul Mangaser

ive got the same problem but i think i've solve it

try to find this line at index_image.php

//****************
$path=$_SERVER['DOCUMENT_ROOT'];

    /**** This Path set befor uploded Image Path ********/////////////

    

    if(isset($_POST["submit"]))

    {

        $ftmp = $_FILES['image']['tmp_name'];

        $oname = $_FILES['image']['name'];

        $fname = 'upload-tmp/'.$_FILES['image']['name'];

        

        $sizes = getimagesize($ftmp);    

        $width    =    $sizes[0];

        $height    =    $sizes[1];

    

        $extenssion = strstr($oname, ".");

    

        if(strtolower($extenssion)==".zip")

        {

            if(move_uploaded_file($ftmp, $fname))

            {

                  include('Archive/Zip.php');        // imports

                  $obj = new Archive_Zip($fname); // name of zip file

            

                  /*********** Extract Zip file here ***********************///////////////////////////////////    

                  $v_result_list = $obj->extract();

                  $needarray = array('.gif', '.jpg', '.jpeg');

                 foreach($v_result_list as $key => $val)

                 {

                    $filename = strstr($val['stored_filename'],".");

                    /****** User can allowed which extension here set **************************************/

                    if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')

                    {

                        copy('upload-tmp/'.$val['stored_filename'], 'upload/'.$val['stored_filename']);

                        $image_copy[]    =    $val['stored_filename'];

                    }

                    unlink('upload-tmp/'.$val['stored_filename']);

                 }

                 unlink($fname);

            }

        }


and change it to this
ive add "manila" on the path its my folder


///**************************

$path=$_SERVER['DOCUMENT_ROOT'].'manila';

    /**** This Path set befor uploded Image Path ********/////////////



    if(isset($_POST['submit']))

    {


        $ftmp = $_FILES['image']['tmp_name'];

        $oname = $_FILES['image']['name'];

        $fname = 'upload-tmp/'.$_FILES['image']['name'];

        

        $sizes = getimagesize($ftmp);    

        $width    =    $sizes[0];

        $height    =    $sizes[1];

    

        $extenssion = strstr($oname, ".");

    

        if(strtolower($extenssion)==".zip")

        {

            if(move_uploaded_file($ftmp, $fname))

            {

                  include('Archive/Zip.php');        // imports

                  $obj = new Archive_Zip($fname); // name of zip file

            

                  /*********** Extract Zip file here ***********************///////////////////////////////////    

                  $v_result_list = $obj->extract();

                  $needarray = array('.gif', '.jpg', '.jpeg');

                 foreach($v_result_list as $key => $val)

                 {
                     $yael = str_replace(".zip","",$_FILES['image']['name']);
                     $newImages = str_replace($yael,"",$val['stored_filename']);

                    $filename = strstr($newImages,".");

                    /****** User can allowed which extension here set **************************************/

                    if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')

                    {

                        copy('upload-tmp/'.$newImages, 'upload/'.$newImages);

                        $image_copy[]    =    $newImages;

                    }

                    //unlink('upload-tmp/'.$val['stored_filename']);

                 }

                 unlink($fname);

            }

        }

hope it will be a good help

Godbless

 
Post Date: Jan 12, 2010 05:14:10
paul says:
Comment:
hi im paul Mangaser
ive got the same problem but i think i've solve it
try to find this line at index_image.php
//****************
           foreach($v_result_list as $key => $val)

                 {

                    $filename = strstr($val['stored_filename'],".");
            /****** User can allowed which extension here set **************************************/

                    if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')

                    {

                        copy('upload-tmp/'.$val['stored_filename'], 'upload/'.$val['stored_filename']);

                        $image_copy[]    =    $val['stored_filename'];

                    }

                    unlink('upload-tmp/'.$val['stored_filename']);

                 }
change to
if(move_uploaded_file($ftmp, $fname))

            {

                  include('Archive/Zip.php');        // imports

                  $obj = new Archive_Zip($fname); // name of zip file

            

                  /*********** Extract Zip file here ***********************///////////////////////////////////    

                  $v_result_list = $obj->extract();

                  $needarray = array('.gif', '.jpg', '.jpeg');

                 foreach($v_result_list as $key => $val)

                 {
                     $yael = str_replace(".zip","",$_FILES['image']['name']);
                     $newImages = str_replace($yael,"",$val['stored_filename']);

                    $filename = strstr($newImages,".");

                    /****** User can allowed which extension here set **************************************/

                    if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')

                    {

                        copy('upload-tmp/'.$newImages, 'upload/'.$newImages);

                        $image_copy[]    =    $newImages;

                    }

                    //unlink('upload-tmp/'.$val['stored_filename']);

                 }

                 unlink($fname);

            }
Post Date: Jan 12, 2010 08:13:08
paul says:
Comment:
sorry for the second comment it was accidentally sent
Post Date: Jan 13, 2010 01:58:53
paul says:
Comment:
hi im paul Mangaser
ive got the same problem but i think i've solve it
try to find this line at index_image.php

if(move_uploaded_file($ftmp, $fname))
{
    include('Archive/Zip.php');        // imports
    $obj = new Archive_Zip($fname); // name of zip file

    /*********** Extract Zip file here ***********************///////////////////////////////////    

    $v_result_list = $obj->extract();
    $needarray = array('.gif', '.jpg', '.jpeg');
    foreach($v_result_list as $key => $val)
    {
        $filename = strstr($val['stored_filename'],".");

        /****** User can allowed which extension here set **************************************/

        if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')
        {
            copy('upload-tmp/'.$val['stored_filename'], 'upload/'.$val['stored_filename']);
            $image_copy[]    =    $val['stored_filename'];
        }
        unlink('upload-tmp/'.$val['stored_filename']);
    }
    unlink($fname);
}

edit it like this

if(move_uploaded_file($ftmp, $fname))

            {

                  include('Archive/Zip.php');        // imports

                  $obj = new Archive_Zip($fname); // name of zip file

            

                  /*********** Extract Zip file here ***********************///////////////////////////////////    

                  $v_result_list = $obj->extract();

                  $needarray = array('.gif', '.jpg', '.jpeg');

                 foreach($v_result_list as $key => $val)

                 {
                     $yael = str_replace(".zip","",$_FILES['image']['name']);
                     echo $newImages = str_replace($yael.'/',"",$val['stored_filename']);

                    $filename = strstr($newImages,".");

                    /****** User can allowed which extension here set **************************************/

                    if($filename=='.gif' || $filename=='.jpeg' || $filename=='.jpg')

                    {

                        copy('upload-tmp/'.$newImages, 'upload/'.$newImages);

                        $image_copy[]    =    $newImages;
                        unlink('upload-tmp/'.$newImages);
                         

                    }

                 }

                 unlink($fname);
                 rmdir('upload-tmp/'.$yael);

            }


and dont forget to do edit this line
$path=$_SERVER['DOCUMENT_ROOT'];
into this
$path=$_SERVER['DOCUMENT_ROOT'].'/manila/';

have a good day

Post Date: Feb 19, 2010 02:03:29
chintan patel says:
Comment:
If i am upload other than image zip folder it gives warning.

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/khanbhai/ajax/upload-tmp/upload-tmp/) [function.unlink]: Is a directory in /homepages/35/d268421124/htdocs/khanbhai/ajax/upload-image-zip.html on line 36

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/khanbhai/ajax/upload-tmp/Archive/) [function.unlink]: Is a directory in /homepages/35/d268421124/htdocs/khanbhai/ajax/upload-image-zip.html on line 36

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/khanbhai/ajax/upload-tmp/Archive/Zip.php) [function.unlink]: No such file or directory in /homepages/35/d268421124/htdocs/khanbhai/ajax/upload-image-zip.html on line 36

Warning: unlink(/kunden/homepages/35/d268421124/htdocs/khanbhai/ajax/upload-tmp/upload/) [function.unlink]: Is a directory in /homepages/35/d268421124/htdocs/khanbhai/ajax/upload-image-zip.html on line 36
Post Date: Jul 16, 2010 09:59:12
naveen says:
Comment:
i got this error

  is this works in local system or not?


Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
7/16/2010 7:20:15 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1
Post Date: Feb 05, 2014 08:17:54
swathy says:
Comment:
Once the image folder is uploaded,i am not able to view the images in screen
Post Date: Jan 05, 2017 01:00:22
suraj says:
Comment:
i got error
You don't have permission to access /uuuu/< on this server.

plz instruct me. I m new in php
Post Date: Jan 05, 2017 05:22:00
suraj says:
Comment:
can't extract zip with multiple images... how i increase numbers of images??

 
Post Date: Jan 08, 2017 03:00:09
suraj says:
Comment:
how can i increase size of zip block to upload???
Preview Comment
Post Comment