changed exception handling during upload to catch all exceptions