need some help

Results 1 to 2 of 2

Thread: need some help

  1. #1
    Join Date
    Dec 1969

    Default need some help

    Hi,<BR><BR>I&#039;m building a page where the user can upload a file and in the process I&#039;m sending the file name to a database, so for example "this document.doc" or "this document.html".<BR><BR>I also want to send the file type to the database so from the file name I&#039;d just take the "doc" or the "html" part.<BR><BR>Can someone help me with doing this in asp.<BR><BR>thanks claire

  2. #2
    Join Date
    Dec 1969

    Default RE: need some help

    Most upload components I know have a function for this, you could check that. I there&#039;s none, it&#039;s trivial to write one yourself<BR><BR>Function Extension ( strFileName )<BR> dotPos = InstrRev ( strFileName,".")<BR> Extension = RIGHT ( strFileName, LEN( strFileName ) - dotPos)<BR>End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts