How to Get File Name From Request Body Attachment
search cancel

How to Get File Name From Request Body Attachment

book

Article ID: 390355

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We have a use case for getting the file name of the attachment in the request body. Cannot find proper assertion for it.

Example:

Resolution

This can be accomplished with the Content-Disposition header - Attached sample Policy that demonstrates this

Postname PUT of form-data with attached file, return Template Resonse returned the name of the file 

 

 

 

 

 

Attachments

GetFilename.xml get_app