From 22dff49673d7732b846107c888259170332746cb Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 1 Oct 2021 07:14:05 +0000 Subject: improve file upload performance: start uploading next file only after the previous finished, make sure to not return when uploading via ajax --- Zotlabs/Module/File_upload.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zotlabs/Module/File_upload.php') diff --git a/Zotlabs/Module/File_upload.php b/Zotlabs/Module/File_upload.php index e18067e20..d4c9ad59a 100644 --- a/Zotlabs/Module/File_upload.php +++ b/Zotlabs/Module/File_upload.php @@ -99,6 +99,9 @@ class File_upload extends \Zotlabs\Web\Controller { } } + if(is_ajax()) + killme(); + goaway(z_root() . '/' . $_REQUEST['return_url']); } -- cgit v1.2.3