Skip to Content

CDS CAP Custom service multipart form data


I am using CAP framework for a project and I want to convert a file from a format to another format before uploading into an entity. I would like to make a custom function which can handle multipart form data without having anything to do with an already existing Entity. This service would just convert a file and afterwards it will connect to the db and set the large binary.

I have attached the error which I get when trying to upload a multipart form data wihin a custom function.

I don't want to be something related to the db model.

This is the definition of the action:

@Core.MediaType @requires_: 'authenticated-user' action convertPpt ( content: LargeBinary);

Can I use other Content? I have not seen the complete list of parameters which I can use.

This is a little time critical.

Best regards,


capture2.png (30.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.