Hello All, I''ve a problem with creating attachments and saving the filename and the handle to the file name. Can anyone tell me how I can store the file name and the correct handle?
Here 2 code fragments: Part one <%-- Show the form --%> <form name="createfolder" action="<mm:treefile page="/workspace/adddocument.jsp" objectlist="$includePath" referids="$referids"/>" method="post" enctype="multipart/form-data"> <mm:createnode type="attachments"> <mm:fieldlist fields="title,description,filename,handle"> <mm:fieldinfo type="input"/> </mm:fieldlist> </mm:createnode> <input type="hidden" name="callerpage" value="<mm:write referid="callerpage"/>"/> <input type="hidden" name="currentfolder" value="<mm:write referid="currentfolder"/>"/> <input type="submit" name="action1" value="<di:translate path="" id="create">create</di:translate>"/> <input type="submit" name="action2" value="<di:translate path="" id="back">back</di:translate>"/> </form> Part two <%-- Get the results from the submit, also in the adddocument.jsp --%> <mm:createnode type="attachments" id="myattachements"> <mm:fieldlist type="all" fields="title,description,filename"> <mm:fieldinfo type="useinput" /> </mm:fieldlist> </mm:createnode>
