Subject: file uploading
| From: | Neil Smith | Date: | Sun, 20 Jul 2003 22:53:15 +0000 |
| Subject: | Subject: file uploading | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20839@lists.php.net to get a copy of this message | ||
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: <000801c34ea7$876bcdc0$0100a8c0@home> From: "Achilles Maroulis" <achmar@ath.forthnet.gr> To: <php-windows@lists.php.net> 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