# Using Newman to run collections with file-post requests

A lot of people have been asking how to use the collection runner to run collections which have requests with file-uploads. Right now, it's not possible to upload files in the collection runner. However, you can use [Newman](https://www.npmjs.com/package/newman), Postman's command-line companion, as a workaround:

1. Create a collection in Postman. This collection sends a single POST request, with two form parameters - one file param, and one text param. The file that was used is <https://gist.github.com/abhijitkane/4aba1c3deeb4ed61a623>
 
 The request runs successfully in the main Postman window: ![Postman run successful](https://puu.sh/cRxpY/167304329e.png)Postman run successful1. Export the file as a JSON, and save it to your filesystem.
2. Open the JSON file for editing. In line 22, change the "value" property of the file param to the complete path of the file:
 
1. Run the collection file in Newman:
 
 ![Collection successfully run in Newman](https://puu.sh/cRxjG/21281e8980.png)Collection successfully run in Newman If you are using Windows, be sure to change the backslashes () in the JSON file to double-backslashes so that the JSON remains valid, e.g. if your "value" is "C:\\Documents\\collection.json", you'll need to change it to "C:\\\\Documents\\\\collection.json". ---

 This tutorial has been updated: <https://blog.postman.com/2017/09/21/run-collections-with-file-uploads-using-newman/>