OK, I thought I was onto something... but here is my curl statement and the error I get back:
Sousleys-Computer:~ csousley$ curl -F 'userfile=/volumes/WebScripts/Applescripts/Photos/web/big/a2plow13.jpg' http://xxx.xxx.xxx.xxx/scripts/ai/imageput.php
<br />es/Mirror/www/images/holding/<br>
<b>Warning</b>: copy(/volumes/WebScripts/Applescripts/Photos/web/big/a2plow13.jpg) [<a href='http://www.php.net/function.copy'>function.copy</a>]: failed to create stream: No such file or directory in <b>/Volumes/Mirror/www/scripts/ai/imageput.php</b> on line <b>8</b><br />
Sousleys-Computer:~ csousley$
and then the page that does the processing:
<?
include('get_vars.php');
$stamp = date(U);
$ex = ".jpg";
$userfile_name = $stamp.$ex;
$dest_path = "/volumes/Mirror/www/images/holding/";
$upfile = $dest_path.$userfile_name;
if (!$userfile) {
echo "<font color='#FF0000'>Error: No File Selected For Uploaded</font>";
exit;
}
if (!copy($userfile, $upfile)) {
echo "<font color='#FF0000'>Error: Could Not Move File Into Images Directory</font>";
exit;
}
echo "<b>File Uploaded</b><p>";
@ $db = mysql_connect("localhost", "xxx", "xxx");
if (!$db) {
echo "Error: Could not connect to the database.";
exit;
}
// DB Insert Here //
?>
get_vars.php handles the variables, so that's covered. Anyone see anything obvious?
Thanks!