Stinhambo,
You need 2 extra templates…
Your first template (which will be a popup from the SAEF), will contain the File Upload code:
{exp:file_upload:upload_form form_name="entryform" destination="Main Upload Directory" field_name="body" return="popups/file_upload_placement"}
<p><input type='file' name='userfile' /></p>
<input type='submit' value='Upload' />
{/exp:file_upload:upload_form}
Your second template (which will share that same popup, and is the return url from the Upload form), will contain the following code:
{javascript}
{exp:file_upload:upload_confirm field_replace="replace"}
<input type='submit' value='Place Image and Close Window' onclick='fileplacer();window.close();' />
{/exp:file_upload:upload_confirm}
That template is both a confirmation page (providing you enter whatever message you want it to say), as well as providing a button for the user to generate and place the code to that uploaded image into the custom field designated in the Upload template.
And best of all, you have full control over how those templates look, etc.
Any other questions?
