Image uploads but then will not add to the album Image uploads but then will not add to the album
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Image uploads but then will not add to the album

Started by phil4071, May 23, 2006, 08:02:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phil4071

Ok this might be a repeat therd but iv searched and thers that mant therds asking/saying the same thing regarding image uploads it difficult to find what your looking for.

The problem that i am having is that however i upload the images, weather i use the HTTP method, or FTP them all to the albums directory to use batch add.
Using the http method the file appears to get uploaded, it comes up with the thumnail and then asks for the picture details. its only when i fill out these details and move on i get the message.

QuoteThe previous file could not be placed.

You have successfully placed all the files.

When i FTP the files into the album folder all goes well, they all appear in the batch add table and i can procead. Again its when it comes to adding the files to the album that it goes wrong. i get the PB error.

My instinct was that it was because one of the foders had not been CHMOD to 777. I check this. the foloders: album/, album/edit/, album/userpics/, and include/ are all set to chmod 777.

I noticed that after trying to add the files to the album and failing they all disapeared from the server, meaning i had to upload them all again.

Anyone got any ideas? the site is tempoarly at http://phiban8.madpage.com/


kegobeer

Follow the troubleshooting guide in the documentation.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

Then post a link to your gallery, with a non-admin test user/password.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

phil4071


kegobeer

I uploaded two test images into the personal gallery.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

phil4071

Bingo! think iv sused that 1, i had made the album but not the catagory. but now im getting another problem when uploading images, this time i think its to do with the resising of the when they are too big. i get this critical error

QuoteThe file 'albums/userpics/10001/Prom014~1.JPG' can't be inserted in the album

Error executing ImageMagick - Return value: 9

Cmd line :
/usr/bin/convert -quality 80 -geometry 2048x1536 'albums/userpics/10001/Prom014~1.JPG' 'albums/userpics/10001/Prom014~1.JPG'


The convert program said:


File: /home/www/phiban8.madpage.com/db_input.php - Line: 402

kegobeer

What are the dimensions of the image you uploaded (1024x768, 1900x1200, etc)?  I uploaded a 1024x768, 520kb image without any problems.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

phil4071

it was 2304x1728 858kb

the max width/hight is 2048 but i checked that auto resize was checked for everyone.

kegobeer

With large dimension files you will simply run out of available memory.  It takes a huge amount of resources to resize large images, and ImageMagick (contrary to popular belief) is not exempt from this limitation.  If there was no limit, processes would consume all of the resources and crash the server.

If you want huge images, either ask your host to give you more memory allocation or upload smaller images.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

phil4071

the problem is that most of the images will be uploaded by other users not myself. I have no controll over the size of images people upload and some people may not know how to batch resize all the photos.

just thinking outload here but if i remove the dimention limit it works. but if i keep it so that only 1 file can be uploaded at a time hopfully i can encurage people to send me a .zip folder byt email containing all the photos, then i can resize them myself and upload them via the batch upload.

Thanks for your help
much appricated

Phil

Joachim Müller

send your user to XP Publisher - this way, the pics will be resized on the client. Regular users can't batch-add anyway.

kegobeer

Your host may be generous and give you more memory allocation.  It never hurts to ask. :)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots