file upload position

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi, I have a question.
I upload file from client to server by asp.net,
this is my code:

protected System.Web.UI.HtmlControls.HtmlInputFile fb;

HttpFileCollection MyFileColl = Request.Files;
HttpPostedFile MyPostedMember = MyFileColl.Get("fb");
fb.PostedFile.SaveAs(("C:\\temp\\test.wav" ));

and it is ok.

But I w'd like to save the file to another ip address (like
192.168.6.2),
and I open the share folder on it and create the mapping disk on my pc
is Z.

I try this:
fb.PostedFile.SaveAs(("192.168.6.2\\temp\\test.wav" ));
but got error.

how should I modify my code?

Thanks for your kind advice, David.

.



Relevant Pages

  • Re: Opening File Dailog Box using javascript
    ... applications that i am currently developing,requires to upload file ... dailog box) on the client side should open in a specific directory only and should filter out files with a specific extension. ... into UNC path and passed on to the server. ... file dailog box of the underlying OS.I tried ...
    (comp.lang.javascript)
  • Re: Squirrelmail - Attachement
    ... Don't if you could help me, but I am sing Squirrelmail and I cannot upload file to send ... I can send mail with an attachment using Squirrelmail with no trouble. ... It appears that the mail is assembled on the client side, with the attachment, and so there is no special storage for it on the server. ...
    (linux.redhat)
  • Re: File Upload
    ... Or you can make .NET component to perform upload file function, ... > hi elton, ... What i did was that i saved the file on the server ... > and then read it line by line using streamreader and streamwriter, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Slow performance of copy file to 2003 server from WinXP
    ... How is the switch setup on the ports for the new server, Auto or fixed for 100 or 1000? ... I found that the XP client that copy file from win2003 server is ... win2003 server is 21 mins). ... If upload file from XP client is no any ...
    (microsoft.public.windows.server.networking)
  • Re: Upload files with wsgi
    ... don' t find how take an upload file i am using the wsgiref lib, ... theres any way to connect to the client in order to get the file by ... a web server will run it in response to web requests? ...
    (comp.lang.python)