No, because you cannot specify (and auto-fill in) the value of a form's upload field (which is required to make use of the $_FILES post array).

This is quite rightly a security feature, else people could script hidden form uploads of say /etc/passwd and so on.

If its a text file you can express in XML, you can upload the data as text to the server with a POST request using the xmlhttp or MSXML.DomDocument.2 interfaces (or the equivalent in Mozilla)

Cheers - Neil Smith.

----------------------------------------------------------------------
Message-ID: <[EMAIL PROTECTED]>
From: "Achilles Maroulis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Sun, 20 Jul 2003 13:13:12 +0300
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: file uploading

Hi.
Is there a way to auto upload some files to the server?
It is about an intranet application. One pc uses some external programs for
some procedures. The result is a text file wich is stored always in the same
folder with the same name to the client pc. Is there a way php can
auto-upload that file (when asked to do so) without having to submit a form
filled by the user? I don't want to make that folder shared for security
reason.
Is that an html issue?

Thanx in advnace
Achilles


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to