I have been trying my hardest to figure out how to get the AWS S3 file uploads to work. At this point, I am not sure what the issue is. On the S3 side, everything works if I make the bucket completely open to the public, which is a bad idea. When I put it behind an ACL and provided that to the Leantime instance, no uploads or reads work.
I am using the latest Leantime in a docker container. I have followed along in another thread (Issue uploading files) but have pretty much become stuck. When I disable the redirect on the ticket file upload template and var_dump, I receive the var_dumps but when I try to dump the exception, I get the following error in my resources error log:
[04-May-2020 17:52:13 America/Los_Angeles] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 534790144 bytes) in /var/www/html/src/core/class.fileupload.php on line 553
[04-May-2020 17:52:14 America/Los_Angeles] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 534777856 bytes) in Unknown on line 0
The file is a 60k png, so obviously there is some sort of issue where it seems to continuously attempt to allocate memory? The other interesting bit is that there aren’t 533 lines of code in the file upload, so I am not sure what is happening there (I am not primarily a PHP developer).
Does anyone have any ideas? Was anyone able to get S3 file backing up and running? Any help would be appreciated. I will keep trying to poke at it, but it’s the one remaining issue preventing me from really being able to roll it out in replacement of JIRA and Asana at my company.