Cancel Upload

C

Chamnap

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
 
T

Thomas 'PointedEars' Lahn

Chamnap said:
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] <[email protected]>
 
T

Thomas 'PointedEars' Lahn

Chamnap said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,128
Latest member
ElwoodPhil
Top