From 2db70c7d6ba91765665cd30820f10d57a5b311aa Mon Sep 17 00:00:00 2001 From: David Losada Date: Tue, 12 Mar 2024 13:53:50 +0100 Subject: [PATCH] USH-1125: update arbitrary limitation on CSV import file data size (#4816) --- src/Ushahidi/Modules/V5/Requests/CSVRequest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Ushahidi/Modules/V5/Requests/CSVRequest.php b/src/Ushahidi/Modules/V5/Requests/CSVRequest.php index a1c56481b5..cac6bd9bee 100644 --- a/src/Ushahidi/Modules/V5/Requests/CSVRequest.php +++ b/src/Ushahidi/Modules/V5/Requests/CSVRequest.php @@ -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