Upload Control version 3.2.4 - Error Uploading

0
0

I get the following error when trying upload a file

System.ObjectDisposedException: ‘Cannot access a closed file.’

The code is as follows:

Private Sub LoadFile(ByVal files As HttpFileCollection)
If files Is Nothing Then
Return
End If
files(0).SaveAs(Application.StartupPath & “\Resources\UserData\” & data.pdf

The file is in the downloads folder of the client machine. The file size is not exceeded, and the error event does not capture the error. This works perfectly under version 2.5.

  • You must to post comments
0
0

I have since tried a few other PDF files and the issue seems to have gone. The irony of this is the file was created by the Adobe site for converting word to PDF. I then printed the word document to a PDF printer, and all was good.

  • You must to post comments
0
0

I cannot replicate with Wisej 3.2.4 or 3.2.5.
I’ve attached the test case I used and the pdf that I uploaded.
Can you provide a sample that replicates the behavior that you describe?

Thanks,
Julie

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.