custom uploadDir fixed #4