i have some problem and i know someone can help. I am only allowed to use HTTP in my school (ie, no FTP is allowed). and i have to upload some file from a specific folder on my PC to a web page at 1 hour intervals automatically (ie, every hour a file is dropped into that folder, and i have to get a windows service or desktop application that would automatically detect the new file, and the file finally show on my website page, hosted on the school server.) Remember, the files reside in a folder called DAT on my personal computer in my office. Someone to help me?
Upload Files to School Serveri'm trying to upload a file from my pc to a server automatically
Page 1 of 1
4 Replies - 1252 Views - Last Post: 19 July 2009 - 08:43 AM
Replies To: Upload Files to School Server
#2
Re: Upload Files to School Server
Posted 19 July 2009 - 06:48 AM
i have some problem and i know someone can help. I am only allowed to use HTTP in my school (ie, no FTP is allowed). and i have to upload some file from a specific folder on my PC to a web page at 1 hour intervals automatically (ie, every hour a file is dropped into that folder, and i have to get a windows service or desktop application that would automatically detect the new file, and the file finally show on my website page, hosted on the school server.) Remember, the files reside in a folder called DAT on my personal computer in my office. Someone to help me?
W_W Edit: Changed all caps title
W_W Edit: Changed all caps title
This post has been edited by William_Wilson: 19 July 2009 - 08:16 AM
#3
Re: Upload Files to School Server
Posted 19 July 2009 - 07:32 AM
With HTTP being your only option, you will almost definitely need web server access to place an upload script. If you had that, you would almost certainly have FTP or SSH access as well, which leads me to believe you're not supposed to be doing this.
#4
Re: Upload Files to School Server
Posted 19 July 2009 - 07:58 AM
William_Wilson, on 19 Jul, 2009 - 06:32 AM, said:
With HTTP being your only option, you will almost definitely need web server access to place an upload script. If you had that, you would almost certainly have FTP or SSH access as well, which leads me to believe you're not supposed to be doing this.
yes, am not allowd to use any technology apart from HTTP.
this is the code i was trying to use but only the download part word. this upload part did not work
Try
If My.Computer.Network.IsAvailable Then
Dim webc As New Net.WebClient
'webc.Credentials = New Net.NetworkCredential("", "")
webc.UploadFile("http://127.0.0.1/test.doc", "STORE", "d:\TryFolder\test.doc")
End If
Catch ex As Exception
MessageBox.Show("Access failed" & vbCrLf & ex.Message)
End Try
can u try it for me?
#5
Re: Upload Files to School Server
Posted 19 July 2009 - 08:43 AM
That's VB.NET code.
Moved to VB.NET
Moved to VB.NET
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|