Skip to content

Browser validations break save on persisted objects with images #2376

@tagliala

Description

@tagliala

Let's say we have a model with an image

class Player < ActiveRecord::Base
  mount_uploader :image, ImageUploader

  validates :name, presence: true
  validates :image, presence: true
end

Saving a new object or editing the image is fine
screen shot 2015-08-10 at 15 44 50

but when you try to save a persisted model without editing the image, you get a validation error on the file upload field

screen shot 2015-08-10 at 15 45 22

Refers to #2339 #2373

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions