fix makes FilePath for download and upload more dynamic