Re: file upload
| From: | Victor C. | Date: | Mon, 25 Oct 2004 22:13:27 +0000 |
| Subject: | Re: file upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200300@lists.php.net to get a copy of this message | ||
Thanks for answering Chris..
What if I want to send a file from my web server to another site for them to
parse? I already know what file I want to send and I do not want to have to
select the file by doing "browsing".
"Chris" <listschris@leftbrained.org> wrote in message
news:417D6F36.4000509@leftbrained.org...
> You can't, at least you SHOULDN'T. Just think about what you're asking
> for, you want to download a file from a users computer, without them
> knowing about it.
>
> Major security/privacy issues there that browsers try to prevent.
>
> Chris
>
> Victor C. wrote:
>
> >Hi,
> >
> >I'm trying to submit a file from "index.php" to "index2.php". I
> >know how
to
> >do file upload in PHP. On "index.php"
> >I have:
> >
> ><FORM ACTION="index2.php" METHOD=POST
> > ENCTYPE="multipart/form-data">
> ><INPUT TYPE="file" NAME="myfile" SIZE=30>
> ><INPUT TYPE="submit" NAME="Upload File">
> ></FORM>
> >
> >The next page would only need to use $HTTP_POST_FILES['myfile'] to access
> >the submitted file.
> >
> >My question is: if I already know which file I want to submit, say
> >"file1.xml". How can I just ask "index.php"
> >to submit "file1.xml" to "index2.php"? Without asking the users to
> >pick
the
> >file to upload?
> >
> >Thanks a lot in advance!
> >
> >
> >