// Remember original attachment
attDescription.setOriginalAttachment(originalAttachmentName);
// Remember that work was performed
work.removeAttribute(UploadConstants.UPLOAD_WORK_UPLOAD_ORIGINAL_IMAGE);
// Save before upload
conversionContext.saveDocument();
// Upload original file