mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-03 12:10:42 -06:00
This commit is contained in:
parent
69a8cad47b
commit
9b23cbd2c2
@ -417,7 +417,9 @@ class CsvController extends Controller
|
||||
$settings['roles'] = [];
|
||||
|
||||
if ($request->hasFile('csv_config')) { // Process config file if present.
|
||||
$data = file_get_contents($request->file('csv_config')->getRealPath());
|
||||
|
||||
$size = $request->file('csv_config')->getSize();
|
||||
$data = $request->file('csv_config')->openFile()->fread($size);
|
||||
$json = json_decode($data, true);
|
||||
if (is_array($json)) {
|
||||
$settings = array_merge($settings, $json);
|
||||
|
Loading…
Reference in New Issue
Block a user