parameterized base dir for uploading files