fix download method to construct absolute path from fileName