Re: How can I auto upload a file to the server?

From: Date: Thu, 25 Sep 2003 01:24:35 +0000
Subject: Re: How can I auto upload a file to the server?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-163838@lists.php.net to get a copy of this message
Mike Migurski wrote:
The only part i am having trouble with is making the remote script automatically look into the local computer's hard drive and grab the .txt file.
<snip>
The problem with the code above is the path to the file does not show up in the <input type='file'>, and the user would still need to click on the 'submit button' to upload the file.
You're out of luck - for security reasons, the file input widget is intentionally resistant to scripting/styling.
Like I said, find another method. Try writing a batch file that will FTP them to your server and have a cron script process them. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#163838) next »