ProtectedchangeA file to upload, null to remove the current image, undefined to leave it.
ProtectedmodelProtectedobjectRelease the chosen file's preview. Call when the form closes.
ProtectedrevokeUpload or remove the image. Pass the model a new record was saved as: a new record's save resolves to another instance.
The image to preview: the chosen file, or the model's current image.
An icon image being edited in a form: a file chosen to upload, or the removal of the current image. Nothing is sent until
save(), so a form can create its model first and upload the image to it afterwards.