<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">I ran into this quite a while back. I have two possible things you can try. Both involve edits to the new_dropoff.tpl file:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><b>SOLUTION 1:</b></div><div><font face="Calibri,sans-serif">First, my solution, which works for me is to edit the submitform() script in the new_dropoff.tpl file by</font><font face="Calibri,sans-serif" size="3">&nbsp;setting "ignore_upload = true;&#8221; in the submit form script and my problem went away. Now, my Zendto is highly customized with a JS file uploader and php5.5, so this may not work for you. Also be sure to make sure it doesn</font><font face="Calibri,sans-serif"><span style="font-size: 15px;">&#8217;</span></font><font face="Calibri,sans-serif" size="3">t break&nbsp;something on other browsers.</font></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 12pt;"><span style="background-color: rgb(239, 239, 239);">&lt;</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">script </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">type=</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">"text/javascript"</span><span style="background-color: rgb(239, 239, 239);">&gt;</span><br><span style="color: rgb(0, 0, 128); font-weight: bold;">function </span><span style="font-style: italic;">submitform</span>() {<br>  <span style="color: rgb(0, 0, 128); font-weight: bold;">if </span>(<span style="font-style: italic;">validateForm</span>()) {<span style="color: rgb(128, 128, 128); font-style: italic;"><br></span><span style="color: rgb(128, 128, 128); font-style: italic;">    </span><span style="color: rgb(102, 14, 122); font-weight: bold;">document</span>.<span style="color: rgb(102, 14, 122); font-weight: bold;">fileupload</span>.<span style="color: rgb(122, 122, 67);">submit</span>();<br>    <span style="color: rgb(102, 14, 122); font-weight: bold; font-style: italic;">ignore_unload </span>= <span style="color: rgb(0, 0, 128); font-weight: bold;">true</span>;  <span style="color: rgb(128, 128, 128); font-style: italic;">//TODO: Changed to true to get rid of Chrome error. Need to figure out why the error occurs.</span><span style="color: rgb(128, 128, 128); font-style: italic;"><br></span><span style="color: rgb(128, 128, 128); font-style: italic;">  </span>}<br>}<br><span style="background-color: rgb(239, 239, 239);">&lt;/</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">script</span><span style="background-color: rgb(239, 239, 239);">&gt;</span></pre></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><span style="background-color: rgb(239, 239, 239);"><br></span></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><b>SOLUTION 2, from Jules, who is the Zendto owner and actually knows what he&#8217;s doing:</b></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><div style="font-family: Calibri;"><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0cm 0cm;"><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span lang="EN-US" style="color: windowtext;">From:</span></b><span lang="EN-US" style="color: windowtext;">&nbsp;Jules [<a href="mailto:Jules@Zend.To" style="color: rgb(149, 79, 114);">mailto:Jules@Zend.To</a>]&nbsp;<br><b>Sent:</b>&nbsp;02 January 2014 11:15<br><b>To:</b>&nbsp;John Webber (NBI)<br><b>Cc:</b>&nbsp;ZendTo Users<br><b>Subject:</b>&nbsp;Re: FW: Issue with Chrome browser - "Leave this Page"<o:p></o:p></span></p></div></div><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;"><o:p>&nbsp;</o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 12pt; font-size: 11pt;">I've got a quick fix for this. Unfortunately it means you can navigate away from (and hence abort) a running upload, but it stops the Chrome warning, so is better than nothing.<br><br>You want to edit /opt/zendto/templates/new_dropoff.tpl file:</p><p class="MsoNormal" style="margin: 0cm 0cm 12pt; font-size: 11pt;">Find the start of the "submitform" function, and add the last line of this little code snippet:<br><br>&lt;script type="text/javascript"&gt;<br>function submitform() {<br>&nbsp; if (validateForm()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;<b>window.onbeforeunload=function(){}<br></b><br>Jules.</p></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</div><div>Good Luck!</div><div><div class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><span style="font-family: 'Copperplate Gothic Light', sans-serif;">Gray McCord</span></div><div class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><i><span style="font-size: 10pt; color: rgb(227, 108, 10); font-family: 'Copperplate Gothic Light', sans-serif;">Adapt, Mutate, Migrate, or Die</span></i></div><div class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><span style="font-size: 9pt; color: rgb(227, 108, 10); font-family: 'Copperplate Gothic Light', sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -C. Darwin</span></div></div></div></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Everton Bruno Bernardi &lt;<a href="mailto:ebbernardi@gmail.com">ebbernardi@gmail.com</a>&gt;<br><span style="font-weight:bold">Reply-To: </span> ZendTo Users &lt;<a href="mailto:zendto@zend.to">zendto@zend.to</a>&gt;<br><span style="font-weight:bold">Date: </span> Tuesday, November 25, 2014 at 3:55 PM<br><span style="font-weight:bold">To: </span> ZendTo Users &lt;<a href="mailto:zendto@zend.to">zendto@zend.to</a>&gt;<br><span style="font-weight:bold">Subject: </span> [ZendTo] Re: "Leave This Page" warning when dropping off a file<br></div><div><br></div><p dir="ltr">Hello Andrew. </p><p dir="ltr">We also suffer from this problem. Please let me know if you find a solution. <br></p><p dir="ltr">Regards</p><p dir="ltr">Everton Bruno Bernardi</p><div class="gmail_quote">Em 25/11/2014 18:38, "Andrew Martin" &lt;<a href="mailto:amartin@xes-inc.com">amartin@xes-inc.com</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br><br>
I recently installed Zend.To 4.11 on Ubuntu 14.04. It works great, however I notice that when dropping off a file using Chrome, the user is prompted to either "Stay on This Page" or "Leave This Page" with the message "If you leave this page, you will abandon this drop-off". The correct behavior is to actually click "Leave This Page" to initiate the upload, but this is confusing to users. Is this normal, or is there a way to configure Zend.To to not trigger this browser message?<br><br>
Thanks,<br><br>
Andrew Martin<br>
_______________________________________________<br>
ZendTo mailing list<br><a href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><br></blockquote></div><br>--
<br>This message has been scanned for viruses and
<br>dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br>believed to be clean.

_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></span><br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body></html>