Hi adampoots,
What's not working?
Best,
Cent


![]() |
| | Thread Tools | Display Modes |
| ||||
|
Hi adampoots, What's not working? Best, Cent |
| ||||
|
There was mistakenly omitted from the readme... In your /templates/(your template)/editlink_edit_center.tpl file... Look for the <form action> line... Add to it: enctype="multipart/form-data" That last part allows for binary files to be attached. That must be added in order to upload photos from the edit entry section. Best, Cent |
| |||
|
OK, thanks Cent. Now I am able to get some images to upload and display properly, but there seems to be a minimum size limit. So far .jpg files that are about 10kb are not loading properly but those over 100kb work fine.
|
| ||||
|
Hi timofsurbia, Thanks odd. Unless a file is NOT a JPG or over the maxium width/height for displaying on the site, its not even processed by anything and just uploaded, moved (renamed) and stored in the DB. Can you send me a JPG that is causing the problem (10kb) so I can test on my end? I want to use the same image that you are as opposed to creating one on my end. As there may be certain issues with a particular image that I may not be able to reproduce in the same way. Thanks Best, Cent |
| ||||
|
Hi timorsurbia, This link http://pandorastations.com/story.php..._Electronica-1 came up as a blank page. Best, Cent Quote:
|
| |||
|
Sorry about that. I've been fooling a bit with my database trying to solve this. I am going to try various sizes of this.... http://www.flickr.com/photo_zoom.gne...4708944&size=o to test my hypothesis that there is some sort of lower limit. I would be happy to be wrong so we'll see. EDIT: Update, only the largest version of that image seemed to upload properly. 800 x 600. EDIT2: I seems that I have to drop the maximum height and width down below the size of the images being uploaded for them images to upload properly. For instance if I expect images to be 100 x 100 or higher, then I need to lower those values found in the image_upload_settings.php to under 100 each. Last edited by timofsuburbia; 06-15-2007 at 01:37 AM. Reason: extra details. |
| |||
|
I installed the new version on a 9.5 install of Pligg and I'm still having problems when editing the image as an admin. I can delete an image but can't seem to upload a new one. This is what i get when trying to upload a replacement image in debug mode: START: image_upload_preview_handler Story ID = 17 Image Path = test/00photos/img_17 Image Caption = askjdas dkjhasd Image File = img_17 No image found to display. END: image_upload_preview_handler I had the the previous version of image upload on this site and simply uninstalled it and deleted it and then uploaded and installed the new version. I don't know whether there's something i forgot to delete from the old version that could be causing problems ... but the new version seems pretty self contained. Sorry I can't give an url right now ... it's on a protected dev server. Last edited by revolver; 06-15-2007 at 12:17 PM. |
| ||||
|
revolver, If you can upload an image with a new entry, delete a photo when editing but cannot upload a new one, then try: Open /templates/(your template)/editlink_edit_center.tpl and look around line 25 for the <form action> line... change it to: <form action="" method="post" id="thisform" enctype="multipart/form-data"> the enctype addition is necessary for file uploads. let me know how that works for you. best, cent Quote:
|
| ||||
|
Timofsurbia, I believe I just fixed this problem. The filename wasn't being appended with ".jpg" for images that were smaller (width/height) than the settings and a JPG file. If you can try the attached file... its a direct replacement for the one you have installed and let me know if that works for you. Best, Cent Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Upload Module (File and Image Attachment) | Yankidank | Free Modules | 268 | 02-03-2012 12:19 PM |
| [MOD] Image Upload Module (v1.0) -- Now Available | cent | Questions and Comments | 190 | 01-08-2011 05:12 PM |
| Simple question: Has anyone got the image upload module to work? | Citizenslide | Questions and Comments | 7 | 07-30-2009 02:44 AM |
| Image Upload Module - Really confused | thefandango | Questions and Comments | 3 | 01-05-2009 12:01 PM |
| Image Upload Module -- Call for feature requests | cent | Questions and Comments | 12 | 11-15-2008 01:13 PM |