add error report to downloadFile
fix wrong assets files download