upload user defined folder and files??

Discussion in 'ASP General' started by btopenworld, May 23, 2005.

  1. btopenworld

    btopenworld Guest

    I am using aspload to allow users to upload three files - 2 pics and a word
    doc. The files have standard names but I want the user to define the name of
    the folder.

    Is there and efficient way to make sure that the user does not choose
    illegal characters for folder names? I am doing a series of replaces at the
    moment.

    Thanks for any ideas.

    John B
     
    btopenworld, May 23, 2005
    #1
    1. Advertising

  2. btopenworld

    Joe Iano Guest

    "btopenworld" <> wrote in message
    news:d6sull$n79$-infra.bt.com...
    > I am using aspload to allow users to upload three files - 2 pics and a

    word
    > doc. The files have standard names but I want the user to define the name

    of
    > the folder.
    >
    > Is there and efficient way to make sure that the user does not choose
    > illegal characters for folder names? I am doing a series of replaces at

    the
    > moment.
    >
    > Thanks for any ideas.
    >
    > John B
    >
    >


    We do the same thing for file uploads, replacing problem characters with
    underscores.
     
    Joe Iano, May 23, 2005
    #2
    1. Advertising

  3. btopenworld

    Patrice Guest

    Perhaps a regular expression (see the RegExp class)...

    Patrice

    --

    "btopenworld" <> a écrit dans le message de
    news:d6sull$n79$-infra.bt.com...
    > I am using aspload to allow users to upload three files - 2 pics and a

    word
    > doc. The files have standard names but I want the user to define the name

    of
    > the folder.
    >
    > Is there and efficient way to make sure that the user does not choose
    > illegal characters for folder names? I am doing a series of replaces at

    the
    > moment.
    >
    > Thanks for any ideas.
    >
    > John B
    >
    >
     
    Patrice, May 23, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kannan

    Upload files to a folder in WSS

    Kannan, Mar 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    2,522
    Kannan
    Mar 7, 2004
  2. Oodini
    Replies:
    1
    Views:
    1,779
    Keith Thompson
    Sep 27, 2005
  3. Replies:
    7
    Views:
    400
    Gabriel Genellina
    Sep 25, 2007
  4. Replies:
    1
    Views:
    506
    Sion Arrowsmith
    Jul 10, 2008
  5. Replies:
    3
    Views:
    1,469
    Rolf Magnus
    Jan 18, 2009
Loading...

Share This Page