I am getting some file path from sever using API, but here I want to download those file if click on them. I am using react js-file download package. what I have code so far is below.
downloadFileforUser =(path)=>{
var data = (baseUrl+'/SurveyImages/'+path )
fileDownload(data, path);
}
it is downloading file but I can not read those file such pdf, jpg,png, please help me I am new to Reactjs Thanks