Fix new path bug in upload