When trying to upload a large file (say ~15mb) I am getting an "ObjectDisposedException", "cannot access a closed file".
Here is an example of the code I am using:
while ((bytesRead = UploadFileStream.Read(buffer, 0, buffer.Length)) != 0)
{
/* Do stuff with the data from the uploaded file's stream */
}
Can someone offer me any help or suggestions?
Here is an example of the code I am using:
while ((bytesRead = UploadFileStream.Read(buffer, 0, buffer.Length)) != 0)
{
/* Do stuff with the data from the uploaded file's stream */
}
Can someone offer me any help or suggestions?