# How to feed uppy dashboard with information on already uploaded file?

**URL:** <https://community.transloadit.com/t/how-to-feed-uppy-dashboard-with-information-on-already-uploaded-file/15310>\
**Category:** Uppy\
**Created:** [June 16, 2020, 3:08pm UTC](https://community.transloadit.com/t/how-to-feed-uppy-dashboard-with-information-on-already-uploaded-file/15310 "2020-06-16T15:08:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmitov](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kmitov/32/236_2.png) [@kmitov](https://community.transloadit.com/u/kmitov)\
**Post date:** [June 16, 2020, 3:08pm UTC](https://community.transloadit.com/t/how-to-feed-uppy-dashboard-with-information-on-already-uploaded-file/15310/1 "2020-06-16T15:08:50Z")

</div>

Hi,  
It has been wonderful. It took me some time to get uppy working, but everybody on the team loves it.

Now question I can not find the answer. I have a form with title and image. Image is direct upload on s3 and is stored as

```auto
<input value="{&quot;id&quot;:&quot;34b68d1b33a1d1503c1c908c48e223de.py&quot;,&quot;storage&quot;:&quot;cache&quot;,&quot;metadata&quot;:{&quot;size&quot;:1735,&quot;filename&quot;:&quot;hello_france (1).py&quot;,&quot;mime_type&quot;:&quot;text/x-python&quot;}}" class="uppy-upload-data" type="hidden" name="material[source]" id="material_source">

```

in the form. But the form is not valid when the title is less than 3 symbols. Check is made on the server so the server returns the error. So I have to feed uppy dashboard again with information about the uploaded file as it is already uploaded.

Do you know how could I do this?

---

<div class="post-metadata">

**Author:** ![ajkachnic](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ajkachnic/32/260_2.png) [@ajkachnic](https://community.transloadit.com/u/ajkachnic)\
**Post date:** [July 22, 2020, 1:03am UTC](https://community.transloadit.com/t/how-to-feed-uppy-dashboard-with-information-on-already-uploaded-file/15310/2 "2020-07-22T01:03:11Z")

</div>

I am not sure if I fully understand your question, but I think I have an idea of what you’re getting at.

This is not an optimal solution, but it should work. Upon a file upload, (to Uppy not to the sever), you could save the file as a variable using the `uppy.getFile` method and then if the upload fails, you could load the file from the variable using `uppy.addFile`. Note that you could also store the value in `localStorage` if you’d need to access it at a later point

Alternatively, you could listen for the `upload-error` event and take that file parameter and re-add it

Here’s a code snippet of the latter

```javascript
uppy.on('upload-error', (file, error) => {
  uppy.info(error)
  uppy.addFile(file)
})

```

Note: I haven’t tested this fully, so I don’t know how well this will work, but it’s worth a shot

- Andrew
