A redirect is a quick and easy way to stop a file upload. On the form, you
could have a (modal) file upload progress indicator which has a "Cancel"
link or button under (or next to) it. Clicking "Cancel" can trigger a
redirect back to the same page with a Stripes global message confirmation
-- Upload Has Been Cancelled. I've done this a few times before and it
works pretty well.
-- Rick
On Thu, Jan 15, 2015 at 10:51 PM, Joaquin Valdez <joaquinfval...@gmail.com>
wrote:
> 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" />
> <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