Referencing Upload Files
Posted: February 5th, 2024, 9:32 am
We have two applications 5.1 and MVC, We have created similar functionality widgets in both applications to upload the files(csv/xls), these files are just given the info of the item numbers and the quantity and after using that service we can upload the selected file items to the save cart lists.
In those widgets, we have a service called "Save file" that we use to save on a temporary basis so on that file name we have hardcoded as UploadeFiles and after that, we add the suffix as date, but in 5.1 it works as expected but in the MVC we are getting the error as :
"Web Server Error: File UploadFiles not found in HTTP Request for upload. Make sure your Webpage/Widget has AjaxEnabled set to False. Make sure the button that is used to upload the file has DisplayProgressAnimation and AjaxEnabled set to false."
Below is the structure of the widget(MVC): Below is the structure of the widget(5.1): For both, we have a file upload process.
Structure of Upload Controller (MVC): Structure of Upload Button (5.1): below is the structure of the save file service where we are getting the error:
MVC: 5.1: we have the same implementation on the MVC as 5.1, but after selecting the file we get an exception as shown below: Need to fix this exception to run the service smoothly, I am stuck here so I need help to resolve this issue, let me know if I am missing anything or if we have to make the implementation differently.
In those widgets, we have a service called "Save file" that we use to save on a temporary basis so on that file name we have hardcoded as UploadeFiles and after that, we add the suffix as date, but in 5.1 it works as expected but in the MVC we are getting the error as :
"Web Server Error: File UploadFiles not found in HTTP Request for upload. Make sure your Webpage/Widget has AjaxEnabled set to False. Make sure the button that is used to upload the file has DisplayProgressAnimation and AjaxEnabled set to false."
Below is the structure of the widget(MVC): Below is the structure of the widget(5.1): For both, we have a file upload process.
Structure of Upload Controller (MVC): Structure of Upload Button (5.1): below is the structure of the save file service where we are getting the error:
MVC: 5.1: we have the same implementation on the MVC as 5.1, but after selecting the file we get an exception as shown below: Need to fix this exception to run the service smoothly, I am stuck here so I need help to resolve this issue, let me know if I am missing anything or if we have to make the implementation differently.