Test upload path correction