Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Image file upload form add?

Quote Reply
Image file upload form add?
I added the image field as a file upload via the control panel by going to link properties and adding the "image" field. I resynced and rebuild the pages, but I need to find out how to add it to my "add.html" template.?. I thought that it would add itself automatically, but I must be mistaken. Do I need to add this manually via the "include_form.html"? If so, then how do I add a form field that will allow users to upload to my server (and make sure to title that upload with the image variable)? I set permission to world-writable for the folder.
Quote Reply
Re: [Sugaar] Image file upload form add? In reply to
Well, this seems to work:

In include_Form.html, just add:

Code:
<input type="file" name="image"><%if image%><%image%><%endif%>


Taadaa!