Skip to Content
Jul 28, 2020 at 10:26 AM

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)