-<!--
- <a href="javascript:hide_attachments_form();">
- <?_("Close window")> <img src="static/webcit_icons/closewindow.gif" border="0"></div>
- </a>
- <h2><img src="static/webcit_icons/essen/16x16/attachement.png"> <?_("Attachments:")></h2>
- <ul><?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")></ul>
-
- <iframe id="upload_target" name="upload_target" src="" style="width:0;height:0;border:0">
- (Hidden iFrame for uploads because ajax cannot handle files)
- </iframe>
-
- <form name="upload_attachment_form" id="upload_attachment_form" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="upload_attachment" target="upload_target">
- <input type="hidden" name="nonce" value="<?NONCE>">
- <div id="gonna_upload_this">
- <input type="hidden" name="submit_action" value="">
- <?_("Attach file:")>
- <input name="attachfile" id="attachfile" class="attachfile" size=40 type="file" onChange="$('gonna_upload_this').style.display='none'; $('upload_throbber').style.display='block'; document.upload_attachment_form.submit(); $('attachfile').value=''; show_attachments_form(); update_attachment_count();">
- </div>
-
- <div id="upload_throbber" style="display:none">
- <?_("Upload")> <img src="static/webcit_icons/throbber.gif" border="0">
- </div>
- </form>
-
--->
-
-<!--
-=================
-$("fileupload").observe("change",handleupload);
-
-function handleupload( e )
-{
-var el = e.findElement();
-new Ajax.Request("backend.php?uploadfile=1",{"method":"post","postBody":el.files[0],"onSuccess":returnupload});
-}
-
-backend.php
-=====================
-if(isset($_GET['uploadfile']))
-{
-$uploaded_file = file_get_contents("php://input");
-file_put_contents("/tmp/myfilename",$uploaded_file);
-}
-
-!-->