Default SharePoint File Upload Control
SharePoint File Upload Control
<tr>
<td>
Upload Related Documents (If Any)
</td>
<td valign="bottom" id="attachmentsOnClient">
<span dir="ltr">
<input type="file" name="fileupload0" id="onetidIOFile" size="56" title="Name" />
</span>
</td>
</tr>
<tr>
<td colspan="4">
<span id="idSpace"/>
<div>
<input id="attachOKbutton" type="BUTTON" onclick='OkAttach()' value="Upload" style="width:auto; height:auto"/>
</div>
</td>
</tr>
Or
<script type="text/javascript"> function AttachFile() { SP.Ribbon.PageManager.get_instance().executeRootCommand("Ribbon.ListForm.Edit.Actions.AttachFile", null, null, null); } </script> <a onclick='javascript:AttachFile();'>browse</a>

Comments
Post a Comment