Hiya,
I have installed uploadify and am experiencing a really annoying problem:
I have a front end form that prompts the user to select an avatar for their profile. The users profile is an extension of the member table, with a has_one relationship for the image as below:
static $has_one = array(
"Avatar" => "Image"
);
An excerpt of the front end form is as follows:
new FieldGroup(
$myAvatar = new FileUploadField('Avatar','Picture')
),
When the form is display, the image field is simply displayed as:
Picture: (none)
Without displaying any kind of form field.
Looking at the source code for the selected area gives:
<div id="AvatarGroup" class="field fieldgroup nolabel">
<div class="middleColumn">
<div class="fieldgroup">
<div class="fieldgroupField">
<label for="Form_UpdateForm_Avatar">Picture</label>
<span id="Form_UpdateForm_Avatar" class="readonly">
<i>(none)</i>
</span>
<input type="hidden" name="Avatar" value="" />
</div>
</div>
</div>
</div>
I am sure that I am doing something really stupid but can't seem to figure out what or find anything in the forums.
Thanks
Phill