943,948 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 393
  • ASP.NET RSS
Aug 24th, 2009
0

Problem on uploading and downloading

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
atplerry is offline Offline
58 posts
since Jul 2007
Aug 25th, 2009
0

Re: Problem on uploading and downloading

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...
Reputation Points: 28
Solved Threads: 106
Banned
dnanetwork is offline Offline
633 posts
since May 2008
Aug 25th, 2009
0

Re: Problem on uploading and downloading

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
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
saj_amo is offline Offline
81 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: on mouse over image can we make place holder control to appear and disapper
Next Thread in ASP.NET Forum Timeline: web.config.comments??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC