Skip to content

Commit

Permalink
USH-1125: update arbitrary limitation on CSV import file data size (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper authored Mar 12, 2024
1 parent 9ee26b1 commit 2db70c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Ushahidi/Modules/V5/Requests/CSVRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ public function rules(Request $request)
return [];
}
}

public function getMaxBytes()
{
// To Do: make it config
return 20000;
// David Losada update 2024-03-15: originally 20KB, that size not useful to anyone.
// Setting to 20MiB, instead.
// This very much needs to become a config setting.
return 20 * 1024 * 1024;
}

private function storeRules(Request $request): array
Expand Down

0 comments on commit 2db70c7

Please sign in to comment.