Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem On IE6 and fire fox 3.6.18 #1

Open
ashkansiroos opened this issue Aug 10, 2011 · 5 comments
Open

Problem On IE6 and fire fox 3.6.18 #1

ashkansiroos opened this issue Aug 10, 2011 · 5 comments

Comments

@ashkansiroos
Copy link

Dear Friends,
I have a problem using this component. When I use this component on F.F, chrome and IE7+ , everything works as they should work.
The problem is when I use IE6 , and upload a file with the button, this error will shown on the page:
Error: Invalid JSON: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. Invalid at the top level of the document. Error processing resource 'http://localhost:56160/Upload.ashx'. Line 1, Positio...[{"thumbnail_url":"Thumbnail.ashx?f=cpuz_readme.txt","name":"cpuz_readme.txt","url":"Upload.ashx?f=cpuz_readme.txt","size":...

The file Already uploaded to the site but the error that has shown to user makes every thing wrong...:(

@i-e-b
Copy link
Owner

i-e-b commented Aug 10, 2011

IE6 isn't directly supported, but I'll take a look when I can get a few hours to build a VM image.
--IEB

@ashkansiroos
Copy link
Author

Chould you please take a look at F.F 3.6.18?
it's ok when I upload files using upload button , but on drag and drop , it returns error.... that the file is 0 KB....
Thanks alot;)

@i-e-b
Copy link
Owner

i-e-b commented Nov 1, 2011

Upload in current version seems to work under IE6; Delete button not working.

@zeeshanvigo
Copy link

The delete button doesn't work in IE, in Chrome get the script error
jquery 405 (method not allowed). How ever in example ALLOW operations include DELETE and others are present.

Found this upon google.
http://stackoverflow.com/questions/1099787/jquery-ajax-post-sending-options-as-request-method-in-firefox

This may help, but I am testing the page locally and the domain is same.
Thanks a lot for any help.

@zeeshanvigo
Copy link

While digging in the Main Demo scripts, found that only POST and GET are allowed by the jQuey ajax API.
so to make delete work, I changed the delete_type and appened a querystring action to get the delete trigger.
Change the SetValues() of the FileStatus class as.

delete_url = HandlerPath + "FileTransferHandler.ashx?f=" + fileName + "&action=delete";
delete_type = "POST";

And then catch this POST back in FileTransferHandler class in HandleMethod like this:

case "POST":
case "PUT":
if (!string.IsNullOrEmpty(context.Request["action"]) &&
context.Request["action"] == "delete")
DeleteFile(context);
else
UploadFile(context);

                break;

This solved the Delete issue for me.

Thanks & Regards,
Zeeshan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants