I was trying to upload videos to youtube using the firebase cloud function.
What I need is when a user uploads a video to firebase cloud storage, functions.storage.objec
The only writeable part of the filesystem in Cloud Functions is the /tmp
directory. As per the documentation here:
This is a local disk mount point known as a "tmpfs" volume in which data written to the volume is stored in memory. Note that it will consume memory resources provisioned for the function.
This is why you hit the memory limit with bigger files.
Your options are: