cancel
Showing results for 
Search instead for 
Did you mean: 

CDS CAP Custom service multipart form data

mihaileb
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,150

capture2.pngHello,

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,

Bruno.

Accepted Solutions (0)

Answers (0)