Save 36% for Black Friday! Learn more

Jesus Vidales

Joined

420 Experience
4 Lessons Completed
0 Questions Solved

Activity

Posted in How to use Uppy with ActiveStorage Discussion

Hey, great cast, it is really useful for a project i'm currently working on. I just have one tiny problem. When i get to the uppy.reset() part, I'm getting the following error:

[Uppy] [17:41:28] Error: Can’t set state for uppy-screen/shot/2020/05/08/at/2/48/50/png-10-10-1d-1d-10-10-1e-1e-1e-image/png-1117029-1588924136020 (the file could have been removed)

Here's how I'm currently using it:

uppy.on('complete', (result) => {
element.querySelectorAll('[data-pending-upload]').forEach(element => element.parentNode.removeChild(element))
result.successful.forEach(file => {
appendUploadedFile(element, file, field_name)
setPreview(element, file)
})
uppy.reset()
})

Not sure if I'm missing something.

I cant find out how to paste code in this forum so I'm sorry if it looks all messy.

Hey Chris, or anyone with the knowledge. Can i reference this video to use a purchased theme on rails 6? Thanks in advance!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.