When you publish a site in Microsoft Azure, the full path of the file is not transferred just the name. And when locally from Visual Studio you start everything up, what could be the problem?
public async Task<ActionResult> Create(TyreEntity tyreEntity, IEnumerable<HttpPostedFileBase> fileUpload) var UrlPhoto = fileupload.FileUpload("tyres", filename, file.FileName, file.ContentType); @using (Html.BeginForm("Create", "TyreEntities", FormMethod.Post, new { enctype = "multipart/form-data" })) <div class="form-group"> <input type="file" name="fileUpload[0]" /><br /> <input type="file" name="fileUpload[1]" /><br /> <input type="file" name="fileUpload[2]" /><br /> <input type="file" name="fileUpload[3]" /><br /> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" name="Submit" value="Сохранить" id="SubmitMultiply" class="btn btn-default" accept="image/*"/> </div> 