# How to run a function upload image locally in serverless invoke local?

**URL:** <https://forum.serverless.com/t/how-to-run-a-function-upload-image-locally-in-serverless-invoke-local/9908>\
**Category:** Serverless Framework\
**Created:** [November 19, 2019, 5:00am UTC](https://forum.serverless.com/t/how-to-run-a-function-upload-image-locally-in-serverless-invoke-local/9908 "2019-11-19T05:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennblvnp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/kennblvnp/32/3732_2.png) [@kennblvnp](https://forum.serverless.com/u/kennblvnp)\
**Post date:** [November 19, 2019, 5:00am UTC](https://forum.serverless.com/t/how-to-run-a-function-upload-image-locally-in-serverless-invoke-local/9908/1 "2019-11-19T05:00:56Z")

</div>

Using `React.js` and `Serverless` and `AWS s3` and `Mac Mojave`

The things that I have tried:

- I tried using `serverless invoke local --function login --data '{"username":"stack2019"}'` which actually work fine
- I tried using `serverless invoke local --function requestUploadURL --data '{"image":"path/docs/image.jpg"}'` that doesn’t work

 ![11%20AM](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/7/7b81ef3cce723d4063661d123c3fa942005ba562.png)

It doesn’t show how to handle image uploads. Or maybe its there but I don’t understand it.

The goal here is to avoid going to Cloud Watch logs. I want to see the errors in my terminal.
