Re: Programmatically upload file from client machine

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sherif ElMetainy (elmeteny.NOSPAM_at_wayout.net.NOSPAM)
Date: 04/05/04


Date: Tue, 6 Apr 2004 00:40:36 +0200

Hello

There is no way you can do this with HTML. The value property is read only
for security so that malicious sites don't attempt to read files from the
client computer
without the user approval. If browsers allow this, it would be a big
security hole.

Best regards,
Sherif

"Beatrice" <bwei@axonetinc.com> wrote in message
news:96246405.0404051412.337bcfea@posting.google.com...
> I am stuck with this problem and desperately need your help.
>
> I would like to upload an xml file or any file from client machine and
> then save it to the server machine. Since the file path on the client
> machine is predefined within the program, I am using the HTMLInputFile
> control, postedfile, saveas ... and set the input control visibility
> to hidden. However, the control value is read only and there is no way
> I can set the client file path. I am wondering if there is a simple
> way to uploading a file without user selection/specification?
>
> Thanks in advance for your help.
> Beatrice



Relevant Pages

  • Re: why microsoft choose mfc rather than wtl?
    ... to lower security settings, etc. ... For a client to get ... the particular AX control is never accessed, shown, or downloaded. ... unethical to deliver an automobile to customers because it is possible ...
    (microsoft.public.vc.mfc)
  • Re: RDP Security - Preventing clients from mapping drives
    ... There is no way of controlling it on the client. ... Your Terminal Services Security Website ... Server (outside of our corporate control) in order to run a medical ...
    (microsoft.public.windows.terminal_services)
  • RE: [fw-wiz] VPN concentrators
    ... Well, if it is remote pc---->network connections, then you can control the ... end user's security pretty securely. ... If your client can't check for these things, ... If> VPN traffic could be split inot different network pools then internal NIDS, and> ACLs could manage this > ...
    (Firewall-Wizards)
  • Re: How to use FolderBrowseDialog control in ASP.NET 2.0
    ... client site file path will help me. ... the fileupload text box. ... control is covered by the article, Uploading Files in ASP.NET 2.0, which you ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Windows form control will not render in IE
    ... Perhaps there is a security issue - did you check the .NET security policy ... > machines with the same framework version the control does not render. ... All I get on the client ...
    (microsoft.public.dotnet.framework.aspnet)