Problem problem problem :( Need Help

M

Mike

I want to upload file to server using below code and i did file size upto 10 mb max...
but i have some problem that is ... time out and lost connection some body told me to use stream which open connection always but i dont have idea how to use it as i never did asp programming very wel
is any body tell me where should i can get materail or any one just give me example to upload file to the server in effective way...
thanks
If Not File1.PostedFile Is Nothing And File1.PostedFile.ContentLength > 0 The
Dim fn As String = System.IO.Path.GetFileName(File1.PostedFile.FileName
Dim SaveLocation As String = Server.MapPath("Data") & "\" & f
Tr
File1.PostedFile.SaveAs(SaveLocation
Response.Write("the file has been uploaded"
Catch ex As Exceptio
Response.Write("Error" & ex.Message
End Tr
Els
Response.Write("Please select a file to upload"
End If
 
R

Ray at

See here please: http://www.aspfaq.com/etiquette.asp?id=5002

Ray at work

Mike said:
I want to upload file to server using below code and i did file size upto 10 mb max....
but i have some problem that is ... time out and lost connection some body
told me to use stream which open connection always but i dont have idea how
to use it as i never did asp programming very well
is any body tell me where should i can get materail or any one just give
me example to upload file to the server in effective way....
 

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

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top