No, there is no way. This is a security restriction - if it would be possible, any web page could
steal files from you.

Tom Woody wrote:

I am trying to put together a script so that I can upload files to a
php script, with just a URL and can't seem to get my brain around it.

For example, The browser would have a url like:\filename.txt

Is there a way to do this and I'm just missing it, or will the client
have to browse and choose the filename with a <form></form> type of

I have tried some google searches on <input> syntax, as well as php
file uploads to no success. The simple code I have been working with
is (obviously nothing has been found for automatically submitting a

if (is_uploaded_file($_FILES['toProcess']['tmp_name'])) {
//successfully uploaded
echo "File successfully uploaded...thank you<br>\n";
else {
echo "Upload Problem<br>\n";

<form enctype="multipart/form-data" action="<? $PHP_SELF; ?>"
Filename: <input type="file" name="toProcess"
<input type="submit">

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to