title: its look like we don't support this file format
body: <p>i ma going to upload image but the file format is not supported i don't know what is the problem.
  file is going to be uploaded but the format is changed what is the problem it can't not be browsed
  in photo viewer.</p>
  
  <pre><code>&lt;form class="wizard-form steps-validation" enctype="multipart/form-data" asp-controller="Application" method="post" data-fouc&gt;
      &lt;fieldset&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-6"&gt;
                      &lt;label class="d-block"&gt; Photo &lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt;
                      @*&lt;input type="file" id="cropimag" class="form-input-styled"  asp-for="Photo.FileName" accept=".jpg,.png,.gif" data-fouc required="" /&gt;*@
                      &lt;label class="label" data-toggle="tooltip" title="Upload your photo"&gt;
                          &lt;img style="height:213px;" class="rounded" id="avatar" src="~/Images/profile.png" alt="avatar"&gt;
                          &lt;input type="file" class="sr-only" id="input" asp-for="Photo.FileName" accept="image/*" required=""&gt;
                          @*  &lt;input type="file" name="name" asp-for="Photo.FileName"&gt;*@
                      &lt;/label&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>C# code is here </p>
  
  <pre><code> var NewPhoto = new Models.Photo
          {
              FileName = request.Model.Photo.FileName
          };
          string ImagePath = NewPhoto.FileName;
          string[] pathArr = ImagePath.Split('\\');
          string Filename = pathArr.Last().ToString();
          if (Filename.Length &gt; 0 &amp; Filename.Length &lt;= 1500)
          {
              var FileName = Filename.ToLower();
              string ext = Path.GetExtension(FileName);
              if (ext == ".png" || ext == ".jpg" || ext == ".gif")
              {
                  var filename = Filename;//DateTime.Now.ToFileTime() +Filename
                  var RootPath = _hostingEnvirnment.ContentRootPath;
                  var FolderPath = Path.Combine("wwwroot", "Photo");//FolderPath
                  var fullpath = Path.Combine(RootPath, FolderPath);
                  var SavePath = Path.Combine(fullpath, filename);
                  using (var strema = new FileStream(SavePath, FileMode.Create, FileAccess.Write))
                  {
                      NewPhoto.FileName = filename;
                      NewPhoto.ContentType = ext;
                      NewPhoto.Path = RootPath; 
                     NewPhoto.Root = FolderPath;
                      NewPhoto.ProfileId = newProfileId;
                  }
              }
          }
  </code></pre>
  
  <p>Controller is here </p>
  
  <pre><code> [HttpPost]
      public async Task&lt;IActionResult&gt; Create([FromBody]LookupsViewModel lookupsViewModel)
      {
  
          var datacommand= new CreateApplicationCommand
          {
              Model = lookupsViewModel
          };
          await Mediator.Send(datacommand);
          var storage = new LocalStorage();
          var profileId = storage.Get("getid");
  
          return View();
  
      }
  </code></pre>
  
  <p>can some one help me please</p>