title: Required permissions are not granted. At least one of these permissions must be granted: Users
body: <p>I'm trying to implement a file upload in an ASP.NET Boilerplate project.
  This is my code:</p>
  
  <p><strong>Index.cshtml</strong>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form asp-controller="Backlog" asp-action="Upload_Image" method="post"
        enctype="multipart/form-data"&gt;
  
    &lt;input type="file" name="file" /&gt;
  
    &lt;button type="submit"&gt;Upload Image&lt;/button&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>BacklogController.cs</strong>:</p>
  
  <pre><code>using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using Abp.Application.Services.Dto;
  using Abp.AspNetCore.Mvc.Authorization;
  using MyProject.Authorization;
  using MyProject.Controllers;
  using MyProject.Users;
  using MyProject.Web.Models.Backlog;
  using MyProject.Users.Dto;
  using System.Collections.Generic;
  using MyProject.Backlog;
  
  namespace MyProject.Controllers
  {
      [AbpMvcAuthorize(PermissionNames.Pages_Backlog)]
      public class BacklogController : MyProjectControllerBase
      {
          private readonly IUserAppService _userAppService;
          private readonly BacklogAppService _backlogAppService;
  
          public BacklogController(IUserAppService userAppService, BacklogAppService backlogAppService)
          {
              _userAppService = userAppService;
              _backlogAppService = backlogAppService;
          }
  
          public async Task&lt;ActionResult&gt; Index()
          {
              var backlogItems = (await _backlogAppService.GetBackLogItems()).Items;
  
              var model = new BacklogListViewModel
              {
                  BacklogItems = backlogItems
              };
  
              return View(model);
          }
  
          [HttpPost] // Postback
          public async Task&lt;IActionResult&gt; Upload_Image(IFormFile file)
          {
              if (file == null || file.Length == 0) return Content("file not selected");
  
              return View();
          }
      }
  }
  </code></pre>
  
  <p>The web app runs, but when I click on the upload button, it says that:</p>
  
  <blockquote>
    <p>the necessary authorizations are not granted. At least one of these permissions must be granted: Users</p>
  </blockquote>
  
  <p>Where am I doing it wrong? Otherwise, is there a simpler way to implement a file upload on ASP.NET Boilerplate?</p>