HTTP request - Content-Disposition attachment variable

Hi,

I have a request I want to test like this:

### Upload File
@filename = "small-test.xlsx"
 POST http://localhost:8000/v1/file/upload/
Accept: application/json
Authorization: Bearer ABCD
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: attachment; filename={{filename}} name="file"

< /path/to/{{filename}}

--WebAppBoundary
Content-Disposition: form-data; name="payer_id"
Content-Type: application/json

1
--WebAppBoundary--

The variable is recognised in the  Content-Disposition header

However it's not recognised in the file path section

< /home/glance/Documents/Claims/{{filename}}

Any way I can get this working?

Thanks

1
1 comment

Got a helpful response from @... 

Hello Omar,
 
Currently, it's not possible. 
We have related request on YouTrack: https://youtrack.jetbrains.com/issue/IJPL-167219
Pleaes vote for it and follow for updates (https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications)
 

Best regards,
Yaroslav Bedrov
JetBrains
http://www.jetbrains.com
The Drive to Develop

Thanks!

0

Please sign in to leave a comment.