Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uploading files

Status
Not open for further replies.

bclt

Programmer
Mar 13, 2005
363
GR
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)
 
Figured out. Was a spelling error!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top