Forum Replies Created

Viewing 1 replies (of 1 total)
  • @richhelms, thanks for your solution. It seems to have worked for me. I had to make the change in two places to stop the errors:

    ` public function update_file($file, $upload_id, $offset)
    {
    $this->upsert(array(
    ‘file’ => $file,
    ‘uploadid’ => null,
    ‘offset’ => 0,
    )); // fix MariaDB null insert error
    }

    public function add_files($new_files)
    {
    foreach ($new_files as $file) {

    if ($this->get_file($file)) {
    continue;
    }

    $this->upsert(array(
    ‘file’ => $file,
    ‘uploadid’ => null,
    ‘offset’ => 0,
    ));
    }
    `

Viewing 1 replies (of 1 total)