Hello,
I have developed a plugin to import products from a text file.
To submit text file, I've used the DataAnnotation UIHint["Download"] in my model. All is working if I click the upload button and select file from my computer.
But if I select the checkbox "use download url" and fill the text box with the file url, I got this error in the log:
A public action method 'SaveDownloadUrl' was not found on controller 'Nop.Web.Controllers.DownloadController'.
System.Web.HttpException (0x80004005): A public action method 'SaveDownloadUrl' was not found on controller 'Nop.Web.Controllers.DownloadController'. at System.Web.Mvc.Controller.HandleUnknownAction(String actionName) at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
This is because the script in the DiplayTemplate call the method SaveDownloadUrl of the controller Nop.Web.Controllers.DownloadController and it doesn't work if the caller is a plugin.
Is it possible to fix it and put inside relative path to the upload method?
Thanks, Domenico.