How to download custom object attachments?
Content
Hi,
What's the best way to download custom object attachments:
- Reading https://docs.oracle.com/en/cloud/saas/service/18a/cxsvc/c_osvc_managing_file_attachments.html
- Using https://your_site_interface/services/rest/connect/version/resource/ resource_id/fileAttachments/fileAttachment_id?download
- Works fine in Chrome
- In IE, it does not work: https://support.microsoft.com/en-gb/help/834489/internet-explorer-does-not-support-user-names-and-passwords-in-web-sit
I am using the code in the codesnippet specifically.
Any advice? Is there no easier way to download attachments in custom objects?
Code Snippet
public function downloadDocument($o,$a) { RNCPHP\ConnectAPI::getCurrentContext()->ApplicationContext = "Update"; header("Location: https://Username12345:[email protected]/services/rest/connect/v1.3/my.documents/".$o."/FileAttachments/".$a."?download"); exit; }
Tagged:
1