fix files getting uploaded to parent directory