awesomefoundation / awesomebits

This is the source code for the Awesome Foundation website
https://www.awesomefoundation.org/
GNU Affero General Public License v3.0
62 stars 53 forks source link

BUGFIX: Submitting incomplete form with images caused page crash #501

Closed jcn closed 2 years ago

jcn commented 2 years ago

Trying to call original_filename on the non-persisted image was causing issues. Instead, we should display the filename from the upload that has already been uploaded to S3 and add that as a hidden field so the image is properly submitted when the application does go through.

This was introduced when we added shrine in #498