Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Error uploading images but not for other filetypes https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=1289 |
Page 1 of 1 |
Author: | quayph [ 16. Nov 2007, 17:29 ] |
Post subject: | Error uploading images but not for other filetypes |
I have installed JFU 2.5.3 in my Joomla 1.0.13 In the configuration I have set the filetypes to "all" so it should accept any type of file. It correctly uploads .zip, .doc, .txt and .psd files (all the file types I have tested so far) but when I try to upload an image file (.gif .png or .jpg ) I get "error uploading file" displayed in the flash. There is no error in the error log in administrator/components/com_joomla_flash_uploader/tfu/tfu.log Does anyone have any suggestions? Keith |
Author: | TinyWebGallery [ 16. Nov 2007, 18:05 ] |
Post subject: | |
do you resize the image? is gdlib for image processing installed? /Michael |
Author: | quayph [ 27. Nov 2007, 09:43 ] |
Post subject: | |
Thanks for your help, and sorry for the delay replying... gd is installed on the server (php configure option is --with-gd=shared). I'm using it to create thumbnails on the fly for a little gallery script with wobbly thumbnails (I can't post the link for now because I am too new to the forum. I'll post it next time if you are interested.) It doesn't make any difference if I resize the image or not. I always get the error "Placement échoué. 1 fichier(s) de 1 ne peuvent être placés." (it's a french instalation). Are there any other php config options I should be looking at? I don't think it is a directory permissions problem or no uploads would work! Keith |
Author: | TinyWebGallery [ 27. Nov 2007, 09:46 ] |
Post subject: | |
weired - because on the upload part there is no additional check about the file type. I only check the image extensions if they need to be resized... you can edit the tfu_upload.php the is something like if (is_supported_tfu_image($file['name'])) { change it to if (is_supported_tfu_image($file['name']) && $size < 100000) { this change is already in tfu and will come to the next version of jfu as well. Then the image is only touched if really a resize is selected. /Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |