Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We are currently adding umbraco into an existing MVC site and have followed the hijack method to get the current pages working however it seems only the index method works. Other methods result in a 404.
Any ideas? Should I move these into a surface controller?
public class DocumentsController : Umbraco.Web.Mvc.RenderMvcController
public async Task<ActionResult> Index()
FileStorageModel fileStorageModel = new FileStorageModel(CurrentPage);
public async Task<ActionResult> UploadDocuments(IEnumerable<HttpPostedFileBase> files, int userId, int parentFolderId, int userChoice)
..... Cant hit this
Route Hijacking only uses the default route for the document type that you hijacked which is the Index one. If you need additional routes you can register them in the RouteTable the normal MVC way. Keep in mind that there is also an extension method called MapUmbracoRoute to map Routes to "Nodes".
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted