> For example, The browser would have a url like:
> http://example.com/upload/fileupload.php?filename=C:\filename.txt
Hmmm...that would be fun. How about I just send you my hard drive now?
You can't give values for file inputs. Otherwise, you could steal files w/o
people knowing about it.
---Joh
, November 21, 2002 9:28 AM
Subject: [PHP] Automatic file upload...
> 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:
> http://example.com
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 br
Hi Tom,
You can't specify a default for the file input box--that would be a
security problem.
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!
--- Begin Message -
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:
http://example.com/upload/fileupload.php?filename=C:\filename.txt
Is there a way to do this and I'm ju
5 matches
Mail list logo