fix(photo): fix dirPath formation for upload