Changes in uploadController for handling non-existing DIRs