0

I have Rails form that uses Active Storage to upload image. I can preview the image fine on the same page. But when user submits the form, I want to show them Preview page to confirm all info before finally submitting.

Right now, I'm only validating data before taking user to Preview page. file-input ofcourse does not allow pre-filling the data for security reasons, and the image path from Active Storage comes out broken.

So how can I show thumbnail of the uploaded image from the previous page, on the Preview page, without having to save data? Is that possible? Or do I have to do a save?

Reason I prefer not to save is it minimize spam from people just trying it out.

Tha

Roman Alekseiev
  • 1,854
  • 16
  • 24
Bashar Abdullah
  • 1,545
  • 1
  • 16
  • 27

0 Answers0