I have two problems with the uploader control:
If I load two images (one after the other, no by selecting 2 at the same time) I get this error:
"Error! Remove operation failed. Unexpected response - see console."
In my upload process, I save the file information on a database table, and then I rename the file to a GUID.
For this reason, my action “save” returns a GUID.
In the latest firefox, chrome and safari, works perfect. However, in IE 9 I get this estrange dialog, offering save a file.
I attached a project replicating the errors; and a screen captures of the errors dialogs.
6 Answers, 1 is accepted
hope this helps!
PS: Note that in my case I don't want to do something in the web server when the user removes a file. This is why I have also removed the data send on each request(to minimize the request's lenght since I am working over gprs). If you want to keep the original functionality, then you should only try to add the contentType option.
I tried your suggestion, but I get the same error...
Thank you for submitting a sample project.
The first issue is a result of a bug. The upload tries to call the Remove action, but it fails because it's not configured. We've fixed it and the fix will be available in the Service Pack that is due this week. For the moment you can configure an empty Remove method as a workaround.
The second issue is a known limitation of the Upload. The response must be returned as text/plain even if it is JSON:
It needs this exactly in order to avoid the "Save As" dialog in IE and FF 3.x
As a token of gratitude for your involvement your Telerik points have been updated.
the Telerik team
I will wait for the SP.
this is my fake remove:
and then on client side I have:
here how I use Upload:
and I receive the error "Expected ;" both when selecting a new file or clicking on "remove" button...
When i checked error in detail it has error related to parseError. As per my knowledge previously when i used JQuery 1.4.2 this issue is not there but i updated to Jquery 1.5.1 and i get this error.
I did following thing and it resolved issue and i hope it helpful to other people to.
I update telerik.upload.min.js
In this i replace dataType with "text" and it seems working for me.
Please provide your suggestion too..