Made upload dir configurable