Connect with Expertise | Find Experts, Get Answers, Share Insights

Cancel Upload

Chamnap
 
Posts: n/a
#1: Aug 17 '07
I develop a form allow the user to upload with the hidden iframe.
While in the progress, I allow the user to cancel their upload. In
javascript, does it have cancel the request to the server. I have one
solution, but I don't like it. I remove the iframe element, so it
won't upload anymore. Do you any other solutions better than this?

Thanks
Chamnap


Thomas 'PointedEars' Lahn
 
Posts: n/a
#2: Aug 17 '07

re: Cancel Upload


Chamnap wrote:
I develop a form allow the user to upload with the hidden iframe.
While in the progress, I allow the user to cancel their upload. In
javascript, does it have cancel the request to the server.
Parse error.
I have one solution, but I don't like it. I remove the iframe element,
so it won't upload anymore.
If, and only if, the UA's DOM allows that, it is *maybe* possible that
the upload is stopped this way.
Do you any other solutions better than this?
A man comes to the doctor and says: "Doc, it hurts when I do this." ...

I have already explained to you why iframes for upload are bad idea.[1]
You can add this problem as another reason for that to the list.


HTH

PointedEars
___________
[1] <46C407C8.6080600@PointedEars.de>
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Chamnap
 
Posts: n/a
#3: Aug 18 '07

re: Cancel Upload


So, which is the best way to implement to allow multiple upload?

Thanks
Chamnap

Thomas 'PointedEars' Lahn
 
Posts: n/a
#4: Aug 18 '07

re: Cancel Upload


Chamnap wrote:
So, which is the best way to implement to allow multiple upload?
I have already told you that. You could follow the pointers I gave you
for a change.


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Chamnap
 
Posts: n/a
#5: Aug 19 '07

re: Cancel Upload


I don't understand. Can you explain me further, please?

Closed Thread