I have a Asp.net page from which you are able to upload a picture that I need in code-behind to process and upload. Now if I try to fetch all uploaded files with Request.Files i get a count of 0. If i check with javascript then it does tell me there is a file so how can i get that File in Code-behind?
Asp.net Code
<div class="custom-file">
<input type="file" ID="FileUploadPictureStudent" class="custom-file-input"
aria-describedby="FileUploadPictureStudent"name="FileUploadPictureStudent" runat="server"
onchange="fileUploadhandeler(this);" />
<asp:Label runat="server" class="custom-file-label" for="FileUploadPictureStudent" Text="Choose file" ID="Fileuploadhelper"></asp:Label>
</div>
Vb.Net Code
Dim HelperLabel = Request.Files.Count.ToString()
Output page is 0
Output Javascript with Command document.getElementById('FormViewAddStudent_FileUploadPictureStudent').files in the console
FileList {0: File, length: 1, item: function} = $1
thanks in advance