Upload files question

M

MichaelK

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
 
M

Mike Brind

MichaelK said:
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.
 
T

Tim Slattery

Mike Brind said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top