lmb124,
I set you up a new post, and merged your posts together…
For starters, you have some “curly” quotes and sme other errors in your code…
Secondly,.. you need to follow the Documentation
Rather than building the form directly into the SAEF Form (which isn’t possible), You’re going to first need to create a link to a popup for your Upload Form:
Click here for Docs Example (as it will not let me post it in the forum)
Now, in your popup Upload form template, you will need to use this 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>
<p><input type="submit" value="Upload" /></p>
{/exp:file_upload:upload_form}
Then, you will need this code place into another template (the File Placement template):
{exp:file_upload:upload_confirm field_replace="replace"}
<p>File sucessfully uploaded!</p>
<input type="submit" value="Place Image and Close Window" onclick="fileplacer();window.close();" />
{/exp:file_upload:upload_confirm}
Let me know if this helps