This question is locked. New answers and comments are not allowed.
Hi,
I have been using upload and love it. However, I'm running into an issue I have been unable to solve.
I have an Area called offline. The HomeController is inside this area. I have a Photo view off of this controller. Inside this view is the following code:
Click the select button and select an image from your computer</h3>
@(Html.Telerik().Upload()
.Name("attachments")
.Async(async => async
.Save("photosave", "photo", new { messageId = ViewBag.MessageId })
.Remove("removephoto", "photo", new { messageId = ViewBag.MessageId }))
.Multiple(false)
.ClientEvents(events => events
.OnSuccess("onSuccess")
.OnUpload("onUpload")
.OnRemove("onRemove")))
The issue is that the photosave action in the photo controller is in the sites main controllers folder, not the area. So upload can't find it. It defaults to looking for the controller and action in the context of the currently executing area. How can I inform the upload control that the photo controller is not in the "offline" area, but instead in the sites main /controller folder?
Many Thanks
I have been using upload and love it. However, I'm running into an issue I have been unable to solve.
I have an Area called offline. The HomeController is inside this area. I have a Photo view off of this controller. Inside this view is the following code:
Click the select button and select an image from your computer</h3>
@(Html.Telerik().Upload()
.Name("attachments")
.Async(async => async
.Save("photosave", "photo", new { messageId = ViewBag.MessageId })
.Remove("removephoto", "photo", new { messageId = ViewBag.MessageId }))
.Multiple(false)
.ClientEvents(events => events
.OnSuccess("onSuccess")
.OnUpload("onUpload")
.OnRemove("onRemove")))
The issue is that the photosave action in the photo controller is in the sites main controllers folder, not the area. So upload can't find it. It defaults to looking for the controller and action in the context of the currently executing area. How can I inform the upload control that the photo controller is not in the "offline" area, but instead in the sites main /controller folder?
Many Thanks