Upload files question
am 02.05.2007 01:37:15 von MichaelKLooking for sample of Upload file asp code.
If possible with the checking of file type and size before starting
uploading.
Thanks in advance,
Michael
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"
news:u3d4nmEjHHA.1884@TK2MSFTNGP06.phx.gbl...
> 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"
>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)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
I think your best bet is to use an ASP.net solution for file uploading.
Servers that have classic ASP generally offer ASP.net as well and you can pass the form information to an ASP.net file which will
perform the upload without a third party product. File type and size can be determined before saving the file.
You can find many examples of uploading files via .net by googling for:
upload ASP.net
You will likely find versions in both vb.net and C#, your choice.
The effort of using ASP.net in this way is more like a script solution which is much more friendly, imho.
"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
>