| | |
Problem on uploading and downloading
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 55
Reputation:
Solved Threads: 3
1.) I have problem uploading file. it work sometime and in the other hand will not work give and error that cannot find the path 'c:/upload/'
2.) i want to upload video file i could not upload video file please could anyone help me with VB.Net coding to upload video file (One thing i notice is when the file uploading that i was using is till working i can upload video lesser than 1000K but when it is more it give a time out)
3.) Thirdly, any file that i upload i want people to be able to download the file be it file or picture and video.
4.) Please what is the step to work on in watching video on my site i want people to watch video on my site.
Thank you so much as you help me in the contribution to my post
2.) i want to upload video file i could not upload video file please could anyone help me with VB.Net coding to upload video file (One thing i notice is when the file uploading that i was using is till working i can upload video lesser than 1000K but when it is more it give a time out)
3.) Thirdly, any file that i upload i want people to be able to download the file be it file or picture and video.
4.) Please what is the step to work on in watching video on my site i want people to watch video on my site.
Thank you so much as you help me in the contribution to my post
hello there...there could be many problems to u r uploading thing..
well if u can elaborate more or if you can show me your code and specially your web.config file...
remember if u r sharing your code...then remove your credentials of u r live site...if u have mentinoned in your .config file..
may be i can help...
well if u can elaborate more or if you can show me your code and specially your web.config file...
remember if u r sharing your code...then remove your credentials of u r live site...if u have mentinoned in your .config file..
may be i can help...
Mark the thread as resolved if your problem gets resolved :)
•
•
Join Date: Jan 2009
Posts: 37
Reputation:
Solved Threads: 0
first create A folder in your root directory named AttachedFiles and then try this code
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Attachment()
End Sub
Private Function Attachment() As String
If FileUpload1.HasFile Then
Dim strpath As String = Server.MapPath("~\AttachedFiles").ToString
Dim strAthpath As String
strAthpath = Path.Combine(strpath, FileUpload1.FileName)
FileUpload1.SaveAs(strAthpath)
Label1.Text = "File Upload Successfully"
Return True
Else
Label1.Text = ""
Return Nothing
End If
End Function
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Attachment()
End Sub
Private Function Attachment() As String
If FileUpload1.HasFile Then
Dim strpath As String = Server.MapPath("~\AttachedFiles").ToString
Dim strAthpath As String
strAthpath = Path.Combine(strpath, FileUpload1.FileName)
FileUpload1.SaveAs(strAthpath)
Label1.Text = "File Upload Successfully"
Return True
Else
Label1.Text = ""
Return Nothing
End If
End Function
sajjad ali memon
![]() |
Similar Threads
- Problem in uploading images (PHP)
- Uploading/downloading (Visual Basic 4 / 5 / 6)
- problem uploading photo in webserver (PHP)
- Downloading problem via internet explorer 7 (Web Browsers)
- Problem with uploading images to website (PHP)
- problem in uploading image (Java)
- Problem in Uploading Files using Register Global on/off (PHP)
- Upload problem of large files in Win 2003 (Windows NT / 2000 / XP)
- Problem with unknown network activity, causing lag. (Networking Hardware Configuration)
- What does being a WebMaster entail (Site Layout and Usability)
Other Threads in the ASP.NET Forum
- Previous Thread: on mouse over image can we make place holder control to appear and disapper
- Next Thread: web.config.comments??
Views: 197 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net browser button c# checkbox click commonfunctions confirmationcodegeneration css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit editing expose feedback fill flash form formatdecimal formview google grid gridview iframe iis javascript list listbox login microsoft migration mono mouse mssql multistepregistration news numerical object objects opera panelmasterpagebuttoncontrols parent problem project radio registration reportemail richtextbox rotatepage rows save schoolproject search security session silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized update validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





