- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 03:57 PM
Does anyone know how to upload a file through the Attachment API with Angular and the module ng-file-upload. I'm having issues trying to pass the actual file data.
Doc: AttachmentAPI-POST
The record is inserted into the sys_attachment table however the file is corrupt and the Content-Type field states;
"multipart/form-data; boundary=---------------------------21049309652076611724709014224"
Even thou the headers are being set as "image/jpeg"
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 12:20 AM
Hi,
Please go through bellow link. It may helpful to you.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 12:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 01:30 AM
Thanks for that. I found your "share" widget which helped.
I ended up using the basic $http request and removed the ng-file-upload module, and used FormData() like you had in your code, and it works perfectly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2019 06:35 AM
Hi Bhagya,
I want to create a file upload functinality but as i am new , i don't know how to do this?
Could you please help me on this?
Regards,
Manmath