Loading...
 
Features / Usability

Features / Usability


Image gallery batch upload

posts: 175 Canada

Hi, I saw this at the shout box.

>melissa: Hey, does anyone know whether the zipfile of images upload >bug has been fixed in 1.8? I have a ton of images to upload and eas >hoping to batch them.

I did not know that you could batch upload! I could not find any refference to this in the docs. I know that I had seen something on this somewhere, but? I saw the bug report at SF and an other post with no answer as to the how to do it.

So I tried to upload a zip file of images using the upload thing. I got an error message saying "cannot process upload" I tried in both a 1.9 CVS march 5 install and in a 1.8 install, same message! The galleries work fine with a normal upload. What am I missing?

Is there any info on how to do this or suggestions?
Thanks, James

posts: 2881 United Kingdom

Hi,

There is a batch upload permission that will need to be set for your users group.

Apart from that zip your jpg's and browse to the zip file.

Been working for me, since the early 1.7 days of tiki and is in use on many of my tiki sites. So check that permission and upload those pics :-)

Damian!

posts: 175 Canada

Hi, thanks for the reply.

So I looked up the perms and found the one you are talking about assigned to editors by default. Ok so I logged in as admin which has the permission and tried again. This is at a 03/05 CVS 1.9 site!

The first time I recieved the same message "cannot process upload"
Then I made the file smaller by removing some of the images. Now I got a great long error message, as below

Warning: filesize(): Stat failed for /temp/SUNP0043.JPG (errno=2 - No such file or directory) in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 190
Warning: getimagesize(/temp/SUNP0043.JPG): failed to open stream: No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 196
Warning: unlink(/temp/SUNP0043.JPG): No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 419

This was repeated for each image.

So this at least gets me on the case as now I will want to make this work. I will try further tests and on my other server as this one is being used for some testing on directory permission stuff. I have not set up the 777 cmod on any directory at this server. So far tiki has not cared but mabe this is an exception. BUT that is a whole other issue.

Thanks again, I will reply with the results when I have another chance to look at it.
James

> Damian:
> Hi,
>
> There is a batch upload permission that will need to be set for your users group.
>
> Apart from that zip your jpg's and browse to the zip file.
>
> Been working for me, since the early 1.7 days of tiki and is in use on many of my tiki sites. So check that permission and upload those pics :-)
>
> Damian!

posts: 27 Australia


I've had a similar problem on v1.8.

I wasn't able to upload a zip of about 3.5MB and about 80 files. I got the error "cannot process upload". However I was able to do an upload of two separate zips, each of about 40 files, and 1.7MB.

If this isn't due to a known limitation, maybe it should be registered as a bug!

> jamesoftopiya:
> Hi, thanks for the reply.
>
> So I looked up the perms and found the one you are talking about assigned to editors by default. Ok so I logged in as admin which has the permission and tried again. This is at a 03/05 CVS 1.9 site!
>
> The first time I recieved the same message "cannot process upload"
> Then I made the file smaller by removing some of the images. Now I got a great long error message, as below
>
> Warning: filesize(): Stat failed for /temp/SUNP0043.JPG (errno=2 - No such file or directory) in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 190
> Warning: getimagesize(/temp/SUNP0043.JPG): failed to open stream: No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 196
> Warning: unlink(/temp/SUNP0043.JPG): No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 419
>
> This was repeated for each image.
>
> So this at least gets me on the case as now I will want to make this work. I will try further tests and on my other server as this one is being used for some testing on directory permission stuff. I have not set up the 777 cmod on any directory at this server. So far tiki has not cared but mabe this is an exception. BUT that is a whole other issue.
>
> Thanks again, I will reply with the results when I have another chance to look at it.
> James
>
> > Damian:
> > Hi,
> >
> > There is a batch upload permission that will need to be set for your users group.
> >
> > Apart from that zip your jpg's and browse to the zip file.
> >
> > Been working for me, since the early 1.7 days of tiki and is in use on many of my tiki sites. So check that permission and upload those pics :-)
> >
> > Damian!

posts: 61

when i try i get this error:
Warning: Undefined index: mime in
../fiona/lib/imagegals/imagegallib.php on line 200

for evry image i include in my zip file.
i tried first with 1 image got 1 error message
then tried with 2 images got 2 error etc..

what does it mean?

posts: 61

> tibi:
> when i try i get this error:
> Warning: Undefined index: mime in
> ../fiona/lib/imagegals/imagegallib.php on line 200
>
> for evry image i include in my zip file.
> i tried first with 1 image got 1 error message
> then tried with 2 images got 2 error etc..
>
> what does it mean?

i changed this (don't know what i'm doing but it worked)


it was
line 199 if ($this->gdversion >= 2.0) Thursday 28 March 2024 23:05:11 UTC else {

probably something wrong with gd.


posts: 175 Canada

Hi, thanks for the reply.

So I looked up the perms and found the one you are talking about assigned to editors by default. Ok so I logged in as admin which has the permission and tried again. This is at a 03/05 CVS 1.9 site!

The first time I recieved the same message "cannot process upload"
Then I made the file smaller by removing some of the images. Now I got a great long error message, as below

Warning: filesize(): Stat failed for /temp/SUNP0043.JPG (errno=2 - No such file or directory) in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 190
Warning: getimagesize(/temp/SUNP0043.JPG): failed to open stream: No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 196
Warning: unlink(/temp/SUNP0043.JPG): No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 419

This was repeated for each image.

So this at least gets me on the case as now I will want to make this work. I will try further tests and on my other server as this one is being used for some testing on directory permission stuff. I have not set up the 777 cmod on any directory at this server. So far tiki has not cared but mabe this is an exception. BUT that is a whole other issue.

Thanks again, I will reply with the results when I have another chance to look at it.
James

> Damian:
> Hi,
>
> There is a batch upload permission that will need to be set for your users group.
>
> Apart from that zip your jpg's and browse to the zip file.
>
> Been working for me, since the early 1.7 days of tiki and is in use on many of my tiki sites. So check that permission and upload those pics :-)
>
> Damian!

posts: 27 Australia


I've had a similar problem on v1.8.

I wasn't able to upload a zip of about 3.5MB and about 80 files. I got the error "cannot process upload". However I was able to do an upload of two separate zips, each of about 40 files, and 1.7MB.

If this isn't due to a known limitation, maybe it should be registered as a bug!

> jamesoftopiya:
> Hi, thanks for the reply.
>
> So I looked up the perms and found the one you are talking about assigned to editors by default. Ok so I logged in as admin which has the permission and tried again. This is at a 03/05 CVS 1.9 site!
>
> The first time I recieved the same message "cannot process upload"
> Then I made the file smaller by removing some of the images. Now I got a great long error message, as below
>
> Warning: filesize(): Stat failed for /temp/SUNP0043.JPG (errno=2 - No such file or directory) in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 190
> Warning: getimagesize(/temp/SUNP0043.JPG): failed to open stream: No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 196
> Warning: unlink(/temp/SUNP0043.JPG): No such file or directory in /home/littleti/public_html/home/lib/imagegals/imagegallib.php on line 419
>
> This was repeated for each image.
>
> So this at least gets me on the case as now I will want to make this work. I will try further tests and on my other server as this one is being used for some testing on directory permission stuff. I have not set up the 777 cmod on any directory at this server. So far tiki has not cared but mabe this is an exception. BUT that is a whole other issue.
>
> Thanks again, I will reply with the results when I have another chance to look at it.
> James
>
> > Damian:
> > Hi,
> >
> > There is a batch upload permission that will need to be set for your users group.
> >
> > Apart from that zip your jpg's and browse to the zip file.
> >
> > Been working for me, since the early 1.7 days of tiki and is in use on many of my tiki sites. So check that permission and upload those pics :-)
> >
> > Damian!


posts: 175 Canada

Hey, just a follow up,

I tried this at a couple of other sites.
WOW smile ANOTHER GREAT FEATURE that I NOW know about! This is going to make my life a little easier.
After my lesson 1, make sure the image is correctly alligned!

Thanks James

posts: 51 United States

FYI: If I upload a zip file with large JPG files, and the zip file is large too - the upload fails. I can reproduce and get the exact error message if needed.

If I do this with reasonable file sizes (each file under 200k for 25 files), it works great.

> jamesoftopiya:
> Hey, just a follow up,
>
> I tried this at a couple of other sites.
> WOW smile ANOTHER GREAT FEATURE that I NOW know about! This is going to make my life a little easier.
> After my lesson 1, make sure the image is correctly alligned!
>
> Thanks James


posts: 51 United States

FYI: If I upload a zip file with large JPG files, and the zip file is large too - the upload fails. I can reproduce and get the exact error message if needed.

If I do this with reasonable file sizes (each file under 200k for 25 files), it works great.

> jamesoftopiya:
> Hey, just a follow up,
>
> I tried this at a couple of other sites.
> WOW smile ANOTHER GREAT FEATURE that I NOW know about! This is going to make my life a little easier.
> After my lesson 1, make sure the image is correctly alligned!
>
> Thanks James


posts: 61

when i try i get this error:
Warning: Undefined index: mime in
../fiona/lib/imagegals/imagegallib.php on line 200

for evry image i include in my zip file.
i tried first with 1 image got 1 error message
then tried with 2 images got 2 error etc..

what does it mean?

posts: 61

> tibi:
> when i try i get this error:
> Warning: Undefined index: mime in
> ../fiona/lib/imagegals/imagegallib.php on line 200
>
> for evry image i include in my zip file.
> i tried first with 1 image got 1 error message
> then tried with 2 images got 2 error etc..
>
> what does it mean?

i changed this (don't know what i'm doing but it worked)


it was
line 199 if ($this->gdversion >= 2.0) Thursday 28 March 2024 23:05:11 UTC else {

probably something wrong with gd.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting