ajax - Tapestry5 JQuery Ajaxupload doesn't delete temp file in Chrome -
iam using tapestry5 jquery ajaxupload file uploads. if file large, writes temp file , deletes temp file after upload. deletes temp file if upload through ie. doesn't delete temp file if upload using chrome. uploads fine, leaves temp file. tried delete manually , not able being used something. had shutdown server delete it. following snippet of code. believe holding file couldn't delete. please help. click here add documents.
<div id="mydiv" class="reveal-div reveal-hidden"> <j:ajaxupload t:id="uploaddocuments" t:multiple="true" t:sizelimit="500m" /> <t:zone t:id="uploadresult" id="uploadresult"> <div> <t:if test="message"> <p> <strong>${message}</strong> </p> </t:if> <t:if test="uploadedfiles"> <h3>uploaded files</h3> <table t:id="filesgrid" t:type="grid" source="uploadedfiles" row="uploadedfilerow" inplace="true" > <t:parameter name="filenamecell"> <div t:id="filename" t:type="jquery/inplaceeditor" value="uploadedfilerow.filename" t:context="uploadedfilerow.filename" /> </t:parameter> </table> </t:if> </div> </t:zone> <t:form t:id="formfileupload"> <div class="reveal-closing" align="right"> <br /> <input t:type="submit" t:id="uploadsave" value="save" class="button" /> <input t:type="submit" t:id="uploadcancel" value="cancel" class="button" /> </div> </t:form> </div> @injectcomponent private zone uploadresult; @persist @property private list<uploadedfile> uploadedfiles; @onevent(component = "uploaddocuments", value = jqueryeventconstants.ajax_upload) private void onuploaddocumentsfromchrome(uploadedfile filetoupload) throws ioexception { logger.info("in onuploaddocumentsfromchrome."); if (filetoupload != null) { this.uploadedfiles.add(filetoupload); } message = "this upload was: ajax_upload"; ajaxresponserenderer.addrender("uploadresult", uploadresult); }
Comments
Post a Comment