EXOGTN-1789: Impossible to upload file in Content Explorer when tmpdir d...

...oes not exist

Fix description:
- Check if temp directory exists when preparing resource for upload.