Common support code for exhibit upload to the Gallery.