#183 patch to prevent multiple upload of the file