Skip to Content
1
Sep 15, 2023 at 05:20 AM

How to read user given file using custom endpoint in CAP Node.js

375 Views

I'm looking to utilize a custom endpoint for file uploading and reading, intending to not store the file in my database. Although I've attempted the following approach, I encountered an error that states, "No payload deserializer available for resource kind 'ACTION_PARAMETERS' and mime type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'." What is wrong here or how read the file?

CDS File:

image.png

JS File:

image.png

Attachments

image.png (7.3 kB)
image.png (35.7 kB)