# Hotwire turbo frame update with active storage uploads

**URL:** https://discuss.hotwired.dev/t/hotwire-turbo-frame-update-with-active-storage-uploads/4326
**Category:** General
**Created:** [July 19, 2022, 1:03pm UTC](https://discuss.hotwired.dev/t/hotwire-turbo-frame-update-with-active-storage-uploads/4326 "2022-07-19T13:03:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![spacerobotTR](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/spacerobottr/32/223_2.png) [@spacerobotTR](https://discuss.hotwired.dev/u/spacerobotTR)
#### Post date: [July 19, 2022, 1:03pm UTC](https://discuss.hotwired.dev/t/hotwire-turbo-frame-update-with-active-storage-uploads/4326/1 "2022-07-19T13:03:42Z")

</div>

I have an active storage file upload for the Projects model. What I want to have happen is to select the files to upload and update the list of files underneath the upload input with hotwire. I wasn’t sure what the best way would be to do that. Do I need to call that from an active storage controller or something or should I be able to do it from the projects controller or model?

---

<div class="post-metadata">

### Author: ![yunggindigo](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/yunggindigo/32/1271_2.png) [@yunggindigo](https://discuss.hotwired.dev/u/yunggindigo)
#### Post date: [July 29, 2022, 11:10pm UTC](https://discuss.hotwired.dev/t/hotwire-turbo-frame-update-with-active-storage-uploads/4326/2 "2022-07-29T23:10:47Z")

</div>

I have done this while using drop zone + active storage I did the [direct upload](https://edgeguides.rubyonrails.org/active_storage_overview.html#direct-uploads) and got a blob\_signed\_id back then I made a request from javascript to a controller and then you can find the blob by using [find\_signed](https://apidock.com/rails/v5.2.3/ActiveStorage/Blob/find_signed/class)

```auto
// file_uploads_controller.rb
def create
  project = Project.find(params[:project_id])
  blob = ActiveStorage::Blob.find_signed(params[:blob_signed_id])
  project.files << blob
  project.save
  render turbo_stream: turbo_stream.append("file-uploads", partial: "uploaded_file", local: { file: blob })
end

```
