Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Upload files question

Reply
Thread Tools

Upload files question

 
 
MichaelK
Guest
Posts: n/a
 
      05-01-2007
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


 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      05-02-2007

"MichaelK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      05-02-2007
"Mike Brind" <(E-Mail Removed)> 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://www.velocityreviews.com/forums/(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload from client application (non-form based upload) stuart@microsoft.com Python 1 11-25-2006 12:14 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
How to detect sizeof upload in order to show status of browser file upload? Heather Fraser Java 0 07-05-2004 12:35 AM
Upload Excel with Macros using HTML File Upload Prakash ASP General 3 11-12-2003 04:26 AM
ftplib question: how to upload files? python@sarcastic-horse.com Python 3 09-12-2003 11:48 AM



Advertisments