<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I have a FoxForm that has the ability to upload a picture to a page. Is it possible to differentiate on the result on &nbsp;the target page, depending on whether a picture was actually uploaded or not.</div><div><br></div><div>At the moment I have on the target page:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; white-space: pre-wrap; ">%lframe%Attach:{$$foxgroup}/{$$name}/{$$upfile_name}</span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">If no picture is uploaded I want a placeholder image that is already on the server, i.e.</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">%lframe%Attach:{$$foxgroup}/{$$name}/placeholder.png</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">I would need some kind of preprocessing. I tried a FoxFilter in config.php, that reads the following:</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><div>$FoxFilterFunctions['FoxFixUpload'] = 'FoxFixUploadFilter';</div><div><br></div><div> &nbsp;function FoxFixUploadFilter($pagename, $fields) {</div><div> &nbsp; &nbsp;if ($fields['upfile_name']="")&nbsp;</div><div> &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div> &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>$fields['upfile_name']="placeholder.png";</div><div> &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>};</div><div> &nbsp; &nbsp;return $fields;</div><div> &nbsp;}</div><div><br></div><div>But this unfortunately didn't work. Can anyone help me here?</div><div><br></div><div>Thanks a lot in advance.</div><div><br></div><div>Martin</div></span></font></div></body></html>