Upload files question

Discussion in 'ASP General' started by MichaelK, May 2, 2007.

  1. MichaelK

    MichaelK Guest

    Looking for sample of Upload file asp code.
    If possible with the checking of file type and size before starting
    uploading.

    Thanks in advance,
    Michael
     
    MichaelK, May 2, 2007
    #1
    1. Advertising

  2. MichaelK

    Mike Brind Guest

    "MichaelK" <> wrote in message
    news:...
    > Looking for sample of Upload file asp code.
    > If possible with the checking of file type and size before starting
    > uploading.
    >
    > Thanks in advance,
    > Michael


    Google: file upload asp -net.

    You won't find anything that checks the file type or size BEFORE upload.
    ASP has no access to files on the client. ASP can check it once it has been
    received, then store or discard it as needed.

    --
    Mike brind
     
    Mike Brind, May 2, 2007
    #2
    1. Advertising

  3. MichaelK

    Tim Slattery Guest

    "Mike Brind" <> wrote:

    >You won't find anything that checks the file type or size BEFORE upload.
    >ASP has no access to files on the client. ASP can check it once it has been
    >received, then store or discard it as needed.


    Just to add to this: the inability to check the size of a file before
    uploading is not unique to ASP. It's inherent in the way HTTP file
    transfer works. You can't tell anything about the file until after it
    arrives at the server.

    --
    Tim Slattery
    MS MVP(DTS)

    http://members.cox.net/slatteryt
     
    Tim Slattery, May 2, 2007
    #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. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,495
    Bruce Barker
    Aug 3, 2005
  2. Heather Fraser
    Replies:
    0
    Views:
    649
    Heather Fraser
    Jul 5, 2004
  3. Replies:
    3
    Views:
    760
    Steve Holden
    Sep 12, 2003
  4. Replies:
    1
    Views:
    950
    Gabriel Genellina
    Nov 25, 2006
  5. Prakash
    Replies:
    3
    Views:
    478
    Ray at
    Nov 12, 2003
Loading...

Share This Page