# Unable to upload document for verification

**URL:** <https://discuss.dwolla.com/t/unable-to-upload-document-for-verification/4281>\
**Category:** API Support\
**Created:** [July 4, 2017, 11:03am UTC](https://discuss.dwolla.com/t/unable-to-upload-document-for-verification/4281 "2017-07-04T11:03:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janakiram](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@janakiram](https://discuss.dwolla.com/u/janakiram)\
**Post date:** [July 4, 2017, 11:03am UTC](https://discuss.dwolla.com/t/unable-to-upload-document-for-verification/4281/1 "2017-07-04T11:03:19Z")

</div>

Hi, As i am trying to upload documents for verification to ‘/documents’ end point, I am getting response as  
{  
“code”: “InvalidResourceState”,  
“message”: “Resource cannot be modified.”  
}  
I am sending access\_token and all required headers as described in dwolla documents page.

the C# code for upload is mentioned below, please advise me.  
Thanks.  
HttpContent fileStreamContent = new StreamContent(stream);

```
            using (var client = new HttpClient())
            using (var formData = new MultipartFormDataContent())
            {
                Uri uploadUrlUri = new Uri(dwollaCustomerUri + "/documents");
                
                client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);
                client.DefaultRequestHeaders.Add("Accept", "application/vnd.dwolla.v1.hal+json");
                client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
                client.DefaultRequestHeaders.Add("ContentType", "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");

                formData.Add(new StringContent("idCard"), "documentType");//Hard coded for testing purpose.
                formData.Add(fileStreamContent, "file", blobName);

                var response = client.PostAsync(uploadUrlUri, formData).Result;

                return response;
            }
```

---

<div class="post-metadata">

**Author:** ![stephen](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/stephen/32/2936_2.png) [@stephen](https://discuss.dwolla.com/u/stephen)\
**Post date:** [July 5, 2017, 3:06pm UTC](https://discuss.dwolla.com/t/unable-to-upload-document-for-verification/4281/2 "2017-07-05T15:06:17Z")

</div>

Hey @janakiram,

It sounds like the customer you are trying to upload a document for is currently not in the `"document"` state. When you do a `GET /customers/:id` the customer should have:

```auto
"status": "document"

```

before you are able to upload documents for them.
