asp upload script.

Results 1 to 2 of 2

Thread: asp upload script.

  1. #1
    Join Date
    Dec 1969

    Default asp upload script.

    I am modifying a asp upload script and i need to know how and if its possible to do this.<BR><BR>in the find file browse unput box i search for a local file to upload eg. c:/test/img/dummy.jpg is there a way i can trim the c:/test off so when i upload it into my database it uploads /img/dummy.jpg and not c:/test/img/dummy.jpg<BR><BR>how can do this.<BR>aron

  2. #2
    Join Date
    Dec 1969

    Default RE: asp upload script.

    sure, some simple string manipulation should do the trick:<BR><BR>Function StripName ( strFullName )<BR> StripName = RIGHT( strFullName, LEN(strFullName)-7)<BR>End Function<BR><BR>this assumes the folder is always &#039;c:/test&#039;

Posting Permissions

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