Я теряю сознание. Я думаю, понял, как загружать файлы на сервер, но я не могу это решить.
Я предлагаю код, любые идеи.
<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Cintas.Master" Inherits="System.Web.Mvc.ViewPage(Of iABC.Temp)" %>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContenido" runat="server">
<%=Html.ValidationSummary("Se produjeron errores al procesar la solicitud. Revise los errores e intente nuevamente.")%>
<% Using (Html.BeginForm("CargarArchivos", "ProcesosAutomaticos", FormMethod.Post, New With {.enctype = "multipart/form-data"}))%>
<input type="file" name="abc" id="abc" />
<input type="submit" value="Submit Button" />
<% End Using%>
</asp:Content>
<AcceptVerbs(HttpVerbs.Post)> _
Function CargarArchivos(ByVal abc As HttpPostedFileBase) As ActionResult
' But abc always is Nothing
' Continue code
End Function
С уважением.
какие-либо ошибки? .... –