Fixes upload when upload directory does not exist