cancel
Showing results for 
Search instead for 
Did you mean: 

CDS CAP Custom service multipart form data

mihaileb
Explorer
0 Kudos

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.

vansyckel
Advisor
Advisor
0 Kudos

Hi Bruno,

Is there a specific reason why you want to send as multipart/form-data? The OData server library used in CAP does not support this out of the box and we never had the requirement to add it. Can you send as text?

Best,
Sebastian

Accepted Solutions (0)

Answers (0)