Upload Very Large Files

Here’s a solution that addresses this issue. The problem is that every file uploaded is checked with sharp to determine if it’s an image or not. Sharp uses Node buffers which have a 2GB limit, so the solution is simply to modify this function so that if the file is larger than 2GB, it skips this process and everything works. Link to the code with the solution is attached.