CompanyDirectory image upload problem

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
milanko
New Member
New Member
Posts: 4
Joined: Wed Jan 12, 2011 11:07 pm

CompanyDirectory image upload problem

Post 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
jomoweb
Forum Members
Forum Members
Posts: 49
Joined: Wed Jan 31, 2007 9:27 pm

Re: CompanyDirectory image upload problem

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”