Ask a Question related to ASP.NET General, Design and Development.
-
Big Tony #1
File upload assitance requested
I'm going crazy trying to do something I think should be simple.
Task: Windows service that will post a file to a WebServer automatically.
I have created a form on the remote site. I can use IE and post to it.
When I try to use System.Net.Webclient to post to the form, it does not work.
No error is returned, but the file does not upload.
Here is the code that is used to post.
Dim Client As New WebClient
Dim UriString As String = "http://10.80.1.169/vbnetupload/webform1.aspx"
Dim filename As String = "c:\new.txt"
Dim responseArray As Byte() = Client.UploadFile(UriString, "POST", filename)
Can anyone clue me in on what I'm doing wrong here?
Big Tony Guest
-
How to upload a file to 2 FTP sites without an upload component for company
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
Help Requested: Mac fh9 file to PC fh9+
Hi there, A friend used his Mac (0n system 9) to produce a file that I have burned to a CD. I specifically downloaded the latest trial of FH11... -
NEWBIE: Exporting Assitance
Hi I am currently learning fireworks and dreamweaver, My page in fireworks has a image on a person which I have added the glow command, the sits... -
The file 'bin\WebProj.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open.
Hi, All, I got this error when trying to compile a web project. The file 'bin\Kennel.dll' cannot be copied to the run directory. The requested... -
MS News \(MS ILM\) #2
Re: File upload assitance requested
"Big Tony" <none@somewhere.else.com> wrote in message
news:um4bjvs35hdqnudb284dk4giak8idv566n@4ax.com...work.> I'm going crazy trying to do something I think should be simple.
>
> Task: Windows service that will post a file to a WebServer automatically.
>
> I have created a form on the remote site. I can use IE and post to it.
> When I try to use System.Net.Webclient to post to the form, it does not"http://10.80.1.169/vbnetupload/webform1.aspx"> No error is returned, but the file does not upload.
>
>
> Here is the code that is used to post.
> Dim Client As New WebClient
> Dim UriString As String =filename)> Dim filename As String = "c:\new.txt"
> Dim responseArray As Byte() = Client.UploadFile(UriString, "POST",>
> Can anyone clue me in on what I'm doing wrong here?
MS News \(MS ILM\) Guest
-
Natty Gur #3
Re: File upload assitance requested
Hi,
Did you try to catch Exceptions?
Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Michal A. Valasek #4
Re: File upload assitance requested
| Is it possible to upload the file without user interaction to a form post
the form?
No, it is not. If it *would* be possible, it would be a big security flaw.
--
Michal A. Valasek, Altair Communications, [url]http://www.altaircom.net[/url]
Please do not reply to this e-mail, for contact see [url]http://www.rider.cz[/url]
Keeping Freedom safe from Democracy
Michal A. Valasek Guest



Reply With Quote

