I'm using BlueImp jQuery File Upload with database integration, adapting the script found here.
I changed a bit the handle_file_upload()
method like this:
$sql = 'INSERT INTO '.$this->options['db_table'].' (`path`, `type`, `tab`, `item`) VALUES (?, ?, ?, ?)';
$query = $this->db->prepare($sql);
$query->bind_param(
'ssii',
$path = $this->options['upload_url'] . $file->name,
$file->type,
$file->tab,
$file->item
);
but, on the line $path = $this->options['upload_url'] . $file->name
, I have a Strict Standards: Only variables should be passed by reference
error
Well, I have no idea how to change this...
I tried to look at other answers, but they don't fit into my case: please any help? Thanks