Page 1 of 1

CompanyDirectory image upload problem

Posted: Fri Jan 21, 2011 4:33 pm
by milanko
Hi, I have a fresh CMSMS installation and I've been trying to enrich the CompanyDirectory functionality with an option to upload 5 images. However, when I try to upload the images they get physically on the server, but only one shows up under the Company profile. Also, when I try to edit the company again and even though I don't touch the only image that showed up, after submission I don't see the image anymore but the browse file fields only. The files stays on the server though.

Can anyone give an advice, please?

Thanks

Re: CompanyDirectory image upload problem

Posted: Mon Mar 21, 2011 5:14 pm
by jomoweb
This seems to be a known bug:

http://dev.cmsmadesimple.org/bug/view/5286

I'm having similar problems. When I go back to edit a company and save anything, it wipes out my custom image value.

The built-in image & logo fields have a second field which will preserve the current value in the db if another image or logo have been uploaded.
<input type="hidden" name="m1_imagecurrent" value="my image.jpg">

The custom image field doesn't have any such hidden current field to preserve the value that I see, so it is writing a blank value to the db where the image name should go.

Unfortunately, fixing this is not within my skill-set.