Upload Files to School Server

i'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 Rate Topic: -----

#1 EMMADDAI  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 15-November 06

Upload Files to School Server

Posted 19 July 2009 - 06:47 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?

Is This A Good Question/Topic? 0
  • +

Replies To: Upload Files to School Server

#2 EMMADDAI  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 15-November 06

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

This post has been edited by William_Wilson: 19 July 2009 - 08:16 AM

Was This Post Helpful? 0
  • +
  • -

#3 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 199
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

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.
Was This Post Helpful? 0
  • +
  • -

#4 EMMADDAI  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 15-November 06

Re: Upload Files to School Server

Posted 19 July 2009 - 07:58 AM

View PostWilliam_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?
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Upload Files to School Server

Posted 19 July 2009 - 08:43 AM

That's VB.NET code.

Moved to VB.NET :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1