Page 1 of 1
Problems in the file upload section
Posted: Thu 30. Mar 2006, 10:20
by bskov
I'm having some problems when uploading files.... some files dissapered from my folder - but they are still on the site.
when i opens a folder the rest of the html-content on the page get cut off ....
well you can see it here:
http://bskov.dk/div/fileerror.gif
I had 4 images in the folder "billeder" but when I uploaded the curent image it kind of overwrote the other images.
hope som one can guide me in the right direction....
Posted: Thu 30. Mar 2006, 10:42
by flip-flop
Hi bskov,
sounds like a corrupt file at your installation.
folder: inc_lib; inc_act;
files: fileinfo.php; filebrowser.php
Gruß Knut
Posted: Thu 30. Mar 2006, 18:27
by bskov
thanks flip-flop
but the problem seems to be the image itself - when i remove it my other images comes back again.
I have tried changing the filename and the .jpg from upper to lower case - but it doesn't change anything.
here is the image:
http://bskov.dk/div/knive2.jpg
I have tried uploading it to another phpwcms installation but with the same result - there are more images from the same clients camera.
can anyone tell if the image is some how damaged....
Posted: Thu 30. Mar 2006, 18:50
by flip-flop
Hi bskov,
the image works for me very well: www(.)mz.ja-nek(.)de/de_artikel_test2.phtml
At your conf.inc.php: $phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
At your phpInfo -> php core: upload_max_filesize = ? (for me: 5M)
Test: Load that image into an graphical-editor and save it again. Then upload it again.
Gruß Knut
Posted: Thu 30. Mar 2006, 20:24
by DeXXus
Also, make sure you are running a -recent- version of phpWCMS:
http://www.phpwcms-docu.de/index.php?cvs_info_en
Posted: Fri 31. Mar 2006, 11:24
by bskov
I've just set it up with 1.2.5 and modified some files - so I'm not happy to do a total update.
which files are used in the file management area ????
I have already updated /inc_lib & /inc_act
EDIT:
It's like the system can't create the thumbnail of those particular images..... where can I update that part of the code ???
Posted: Fri 31. Mar 2006, 13:30
by bskov
I have found the problem - when the images are more than 2100x1500 px phpwcms can't handle them......
where can I set a max resolution of images uploaded ????
Posted: Fri 31. Mar 2006, 13:50
by flip-flop
Posted: Fri 31. Mar 2006, 19:02
by DeXXus
flip-flop has you on the right track.
To embellish last post in that thread (by
jscholtysik) see this link for explanations about "php.ini" values that may affect operations:
http://www.radinks.com/upload/config.php
Also, keep in mind that image operations with GD/ImageMagick use -more- memory (overhead) than just the size of the graphic.