0

Is it possible to simulate browser download (Save As..) using javascript or jquery without calling WebApi? I'm thinking of redirecting the page to the Service Proxy's Url?

chary
  • 57
  • 13
  • It would be a major security issue – A. Wolff Nov 09 '14 at 15:37
  • Do you mean you want to download a file generated via js? If that's the case than this should help http://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-server – Moti Azu Nov 09 '14 at 15:51
  • @A.Wolff Thank you for your reply :) yeah, i thought so too, there would be a security issue. – chary Nov 10 '14 at 01:30
  • @mot Would there be an issue if the file is too big? let's say the file is around 1GB. Thank you! :D – chary Nov 10 '14 at 01:30
  • @chary I'm not sure about that, I found this http://stackoverflow.com/questions/17082286/getting-max-data-uri-size-in-javascript but I didn't find it too conclusive. Go ahead and check for us :) – Moti Azu Nov 10 '14 at 08:55

0 Answers0