I’m uploading files through PUT request and put my file as a Binary
into the Body
request:
The problem is that the file path became missing once I close the request tab and I try to run through Runner
, so this makes it impossible to run it through Runner
.
Here’s the screencast of what I mean: Monosnap
Is there a way to save the file path inside the request body?
Thanks in advance for any suggestions!
@Konstantin.V File paths are not stored in the Postman Environment.
Thus, you won’t be able to use the file in the collection runner nor save them.
This issue aims to solve the issue related to file paths being stored in the app:
opened 12:12AM - 12 Mar 18 UTC
closed 05:55PM - 16 May 19 UTC
feature
product/runtime
<!--
Welcome to the Postman Issue tracker. Any feature requests / bug reports c… an be posted here.
Any security-related bugs should be reported directly to [email protected]
-->
## App Details:
<!--
Copy paste this from Settings > About
-->
```
Postman for Windows
Version 6.0.9
win32 6.1.7601 / x64
```
## Issue Report:
1. Observed since v6
2. Expected behavior:
On exporting a collection with form-data requests having files, src attribute should be populated with the file name.
3. Actual behavior:
**src** attribute is not present in exported collection.
Example:
"body": {
"mode": "formdata",
"formdata": [
{
"key": "document",
"description": "",
"type": "file"
}
]
}
Steps to reproduce the problem:
1. Add a post request.
2. Select body type as form-data
3. Add FILE type item to body and select a file from filesystem
4. Save request
5. Export collection
[Temp.postman_collection.json.zip](https://github.com/postmanlabs/postman-app-support/files/1801020/Temp.postman_collection.json.zip)
<!--
Some guidelines:
1. Please file Newman-related issues at https://github.com/postmanlabs/newman/issues
2. If it’s a Cloud-related issue, or you want to include personal information like your username / collection names, mail us at [email protected]
3. If it’s a question (anything along the lines of “How do I … in Postman”), the answer might lie in our documentation - http://getpostman.com/docs.
-->
You can subscribe to the same for future updates.