Hi,
I've made one basic form to upload files: type file (textfield+Browser button) and a "Upload button".
Want to check the file if it's nothing or have size 0
If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 Then
...
...
The error is "Object reference not set to an instance of an object"
Any Ideas ?
(ive set permissions to write the file in the server)
I've made one basic form to upload files: type file (textfield+Browser button) and a "Upload button".
Want to check the file if it's nothing or have size 0
If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 Then
...
...
The error is "Object reference not set to an instance of an object"
Any Ideas ?
(ive set permissions to write the file in the server)