bunglebrown
New Member
- Messages
- 157
- Reaction score
- 0
- Points
- 0
I have a upload feature run through an actionscript interface. It runs the following php script:
During the session the user inputs various pieces of information which are fed to a database, I would like also to feed the name of the uploaded file to the database - anyone any idea how to do that?
PHP:
<?PHP
$target_path = $_REQUEST[ 'path' ];
$target_path = $target_path . basename( $_FILES[ 'Filedata' ][ 'name' ] );
if ( move_uploaded_file( $_FILES[ 'Filedata' ][ 'tmp_name' ], $target_path ) )
{
echo "The file " . basename( $_FILES[ 'Filedata' ][ 'name' ] ) . " has been uploaded;";
}
else
{
echo "There was an error uploading the file, please try again!";
}
?>
During the session the user inputs various pieces of information which are fed to a database, I would like also to feed the name of the uploaded file to the database - anyone any idea how to do that?