pre-image upload, working