View Single Post
  #2 (permalink)  
Old January 8th, 2007, 02:34 PM
Hadware Hadware is offline
Registered User
Join Date: Nov 2003
Location: Canton, OH, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hadware Send a message via Yahoo to Hadware

Try using:
                ' Determine File Type
                strFileExtension = Right(txtFileContents.PostedFile.FileName, 4)
                Select Case strFileExtension.ToLower
                    Case ".doc"
                        strFileType = "doc"
                    Case ".ppt"
                        strFileType = "ppt"
                    Case ".htm"
                        strFileType = "htm"
                    Case "html"
                        strFileType = "htm"
                    Case ".xls"
                        strFileType = "xls"
                    Case Else
                        strFileType = "txt"
                End Select

If you can upload images into a database through binary this should help. If you need any more help with uploading and downloading word docs let me know.

hope that helps.