Edge on iOS does not allow download

%3CLINGO-SUB%20id%3D%22lingo-sub-2117911%22%20slang%3D%22en-US%22%3EEdge%20on%20iOS%20does%20not%20allow%20download%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2117911%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Microsoft%20team%2C%3C%2FP%3E%3CP%3EI%20am%20using%20an%20%3CSTRONG%3Exhr%3C%2FSTRONG%3E%20request%20to%20%3CU%3Edownload%3C%2FU%3E%20a%20pdf%20(or%20a%20zip)%20file%20from%20our%20servers.%20Most%20browsers%20support%20%3CSTRONG%3EcreateObjectURL%3C%2FSTRONG%3E(blob)%2C%20however%20for%20IE%2Fedge%2C%20I%20have%20been%20using%20%3CSTRONG%3EmsSaveOrOpenBlob%3C%2FSTRONG%3E%20to%20save%20the%20blob%20data.%3C%2FP%3E%3CP%3EiOS%20Edge%20however%2C%20neither%20%3CSTRONG%3Edoes%20not%3C%2FSTRONG%3E%20support%20msSaveOrOpenBlob%2C%20not%20does%20respond%20to%20createObjectURL.%20%3CU%3ESo%20what%20should%20I%20do%20to%20download%20a%20file%20in%20iOS%20edge%3F%3C%2FU%3E%3C%2FP%3E%3CP%3E%3CEM%3EOther%20considerations%3C%2FEM%3E%3C%2FP%3E%3CP%3EA%20simple%20GET%20request%20to%20the%20url%20is%20not%20an%20option%20as%20the%20files%20are%20behind%20a%20%3CSTRONG%3Esession%3C%2FSTRONG%3E.%20Even%20if%20I%20set%20a%20cookie%20to%20set%20the%20session%20(which%20I%20prefer%20to%20not)%20and%20perform%20a%20GET%20request%2C%20iOS%20edge%20allows%20you%20to%20successfully%20preview%20the%20pdf.%20However%20upon%20tapping%20'%3CSTRONG%3Eopen%20with%3C%2FSTRONG%3E'%20performs%20another%20GET%20request%20and%20seems%20to%20%3CSTRONG%3Eignore%20the%20cookie%20entirely%3C%2FSTRONG%3E%20resulting%20in%20failure%20to%20download.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2117911%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDownload%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEdge%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EiOS%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2530867%22%20slang%3D%22zh-CN%22%3EReply%3A%20Edge%20on%20iOS%20does%20not%20allow%20download%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2530867%22%20slang%3D%22zh-CN%22%3EI%20got%20the%20same%20problem%EF%BC%8C%20how%20to%20solve%20it%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi Microsoft team,

I am using an xhr request to download a pdf (or a zip) file from our servers. Most browsers support createObjectURL(blob), however for IE/edge, I have been using msSaveOrOpenBlob to save the blob data.

iOS Edge however, neither does not support msSaveOrOpenBlob, not does respond to createObjectURL. So what should I do to download a file in iOS edge?

Other considerations

A simple GET request to the url is not an option as the files are behind a session. Even if I set a cookie to set the session (which I prefer to not) and perform a GET request, iOS edge allows you to successfully preview the pdf. However upon tapping 'open with' performs another GET request and seems to ignore the cookie entirely resulting in failure to download.

Thanks,

1 Reply
I got the same problem, how to solve it