<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Hans,<div><br></div><div>thanks for your prompt reply.</div><div><br><div><blockquote type="cite"><div>I would need some kind of preprocessing. I tried a FoxFilter in &nbsp;<br><blockquote type="cite">config.php, that reads the following:<br></blockquote><br><blockquote type="cite">$FoxFilterFunctions['FoxFixUpload'] = 'FoxFixUploadFilter';<br></blockquote><br><blockquote type="cite"> &nbsp;&nbsp;function FoxFixUploadFilter($pagename, $fields) {<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;if ($fields['upfile_name']="")<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields['upfile_name']="placeholder.png";<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;return $fields;<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;}<br></blockquote><br><blockquote type="cite">But this unfortunately didn't work. Can anyone help me here?<br></blockquote><br>I would have thought that such a filter function should work, if it<br>is called in the Fox form. It should be defined before including<br>fox.php in config.php.<br></div></blockquote><div><br></div><div>Okay, I defined it after fox.php was called. Nevertheless, defining it above doesn't change the result.</div><br><blockquote type="cite"><div>Have you checked that the filter function is used?<br>You could set for testing purposes in fox.php<br>$FoxDebug = 5;<br>Make sure you do not use 'redirect' in the form when testing!<br>You will get the $fields values echoed.<br>See what happens to your file name.<br></div></blockquote><div><br></div><div>Okay, obviously&nbsp;FoxFixUploadFilter()&nbsp;isn't called.</div><div>I get&nbsp;</div><div>$fx Array</div><div>(</div><div>...</div><div>[filter] =&gt; FoxFixUpload</div><div>...</div><div>)</div><div><br></div><div>But under "ENGINE&gt;&nbsp;TEMPLATE-VR&gt;" I get:</div><div><br></div><div><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">VALUE&gt;upfile_name=</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">I've then rewritten FoxFixUploadFilter() to:</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><div>$FoxFilterFunctions['FoxFixUpload'] = 'FoxFixUploadFilter';<br><br>&nbsp;&nbsp;function FoxFixUploadFilter($pagename, $fields) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields['upfile_name']="placeholder.png";<br>&nbsp;&nbsp;&nbsp;&nbsp;return $fields;<br>&nbsp;&nbsp;}</div><div><br></div><div>… but get the same error.</div><div><br></div><div>What could be wrong?</div></span></font></pre></div></div></div></body></html>