Given the code below, If I selected a file to be uploaded then pressed save, 
the upload begins.  A client wants to be able to click a button on the page to 
cancel the upload. 

Joaquin


> On Jan 16, 2015, at 5:13 AM, Remi Vankeisbelck <r...@rvkb.com> wrote:
> 
> You mean from the browser, or server side?
> 
> Cheers
> 
> Rémi
> De : Joaquin Valdez <mailto:joaquinfval...@gmail.com>
> Envoyé : ‎16/‎01/‎2015 05:52
> À : Stripes Users List <mailto:stripes-users@lists.sourceforge.net>
> Objet : [Stripes-users] cancel file upload
> 
> Hello!
> 
> What are ways to abort a file upload once it has been initiated ?
> 
>  <s:form beanclass="com.silly.action.UploadActionBean" 
> enctype="multipart/form-data" >
>             <div><s:hidden name="ins"/></div>
>             <div class="clear"></div>
>             <fmt:message key="insuploadfrm.instruction"/>
>             <br>
>             <fmt:message key="insuploadfrm.notes"/>
>             <div id="form-topupload">
>                 <div id="f1"></div>
>                 <div id="i1"><s:errors globalErrorsOnly="false"/></div>
>                 <div class="clear"></div>
>                 <div id="f1"><s:label for="ins.attachments"/>:</div>
>                 <c:forEach var="index" begin="0" end="0">
>                     <div  id="i1"><s:file name="attachments[${index}]"/>
>                     </div>
>                 </c:forEach>
>                 <div class="clear"></div>
>                 <div id="f1"></div>
>                 <div id="i1">
>                     <s:submit  class="button" name="save" />&nbsp;
>                     <s:submit  class="button" name="cancel"/>
>                 </div>
>             </div>
> </s:form>
> 
> Thanks,
> Joaquin
> 
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet_______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to