Hi all, just a note that the above code is no longer working if your file is above 2MB. That’s specifically caused by the Staged Uploads part of the code. At this stage I’m going to create my own staged file upload system with Google Cloud Storage so I have more control over that process.
If you don’t plan on uploading files over 2MB or the issue is randomly fixed then you should be good to use the code above.