I guess it is a sort of bad hack to remove name attribute on all front-end page having image selector.
To enhance it, I propose to handle following situations properly on back-end side.
when name=image value is undefined or null on front-end side, back-end should assume no image was selected
when name=defaultImage value is undefined or null on front-end side, back-end should set name=image value as a new image
when both of name=image value and name=defaultImage value are undefined or null on front-end, back-end should delete image
I guess it is a sort of bad hack to remove
name
attribute on all front-end page having image selector. To enhance it, I propose to handle following situations properly on back-end side.name=image
value isundefined
ornull
on front-end side, back-end should assume no image was selectedname=defaultImage
value isundefined
ornull
on front-end side, back-end should setname=image
value as a new imagename=image
value andname=defaultImage
value areundefined
ornull
on front-end, back-end should delete image