Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Jan 13, 2022
1 parent 8f4ec95 commit eb8f23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/Http/Controllers/ViewAssetsController.php
Expand Up @@ -245,7 +245,9 @@ public function postAcceptAsset(Request $request, $logID = null)
$data_uri = e($request->get('signature_output'));
$encoded_image = explode(',', $data_uri);
$decoded_image = base64_decode($encoded_image[1]);
file_put_contents($path.'/'.$sig_filename, $decoded_image);

Storage::putFileAs($path, $decoded_image, $sig_filename);
//file_put_contents($path.'/'.$sig_filename, $decoded_image);
}

$logaction = new Actionlog();
Expand Down
3 changes: 0 additions & 3 deletions app/Http/Requests/ItemImportRequest.php
Expand Up @@ -57,16 +57,13 @@ public function import(Import $import)
}
// We submit as csv field: column, but the importer is happier if we flip it here.
$fieldMappings = array_change_key_case(array_flip($import->field_map), CASE_LOWER);
// dd($fieldMappings);
}
$importer->setCallbacks([$this, 'log'], [$this, 'progress'], [$this, 'errorCallback'])
->setUserId(Auth::id())
->setUpdating($this->has('import-update'))
->setShouldNotify($this->has('send-welcome'))
->setUsernameFormat('firstname.lastname')
->setFieldMappings($fieldMappings);
// $logFile = storage_path('logs/importer.log');
// \Log::useFiles($logFile);
$importer->import();

return $this->errors;
Expand Down

0 comments on commit eb8f23a

Please sign in to comment.