Timeline for Authentication for external download
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2015 at 21:00 | comment | added | cfann61 | Ended up creating a small authentication app on the server where the files are stored. So any requests to the file url are authenticated through Salesforce. Would've been cleaner to do it in Salesforce, but this offered a quick solution. Thanks for you help @CaspNZ | |
May 14, 2015 at 21:18 | comment | added | Caspar Harmer | You know, you could prob do this all in javascript - just supply the url to a javascript or jQuery function, grab the data and set it as an attribute on the anchor tag. Of course, you have exposed the url in javascript, but only a developer will know about that. | |
May 14, 2015 at 21:15 | comment | added | Caspar Harmer |
Oh bummer. There's not much you can do about that, as heap size. I think the limit is 6MB now. Actually, if you make the call with a Continuation which is async, you might get up to 12MB.
|
|
May 14, 2015 at 21:04 | comment | added | cfann61 | Thanks @CaspNZ. This would've worked, but my file size was too big for the Attachment class | |
May 14, 2015 at 21:03 | vote | accept | cfann61 | ||
May 14, 2015 at 19:20 | vote | accept | cfann61 | ||
May 14, 2015 at 19:20 | |||||
May 14, 2015 at 18:47 | history | edited | Caspar Harmer | CC BY-SA 3.0 |
Improved example
|
May 14, 2015 at 18:41 | history | edited | Caspar Harmer | CC BY-SA 3.0 |
added 146 characters in body
|
May 14, 2015 at 18:22 | history | answered | Caspar Harmer | CC BY-SA 3.0 |