When uploading the file back to Plone, try to open it multiple times
before giving up, as it may have been locked by another process
(e.g. virus scanner).