I am currently developing an API using Cloudflare Workers and have encountered a technical issue with handling FormData objects. Specifically, I am unable to use the
form.getBuffer()
form.getBuffer()
and
form.getBoundary()
form.getBoundary()
methods as they are seemingly not recognized as functions. Here is the relevant part of my code:
Upon attempting to execute this, I receive the following errors:
-
TypeError: form.getBuffer is not a function
TypeError: form.getBuffer is not a function
-
TypeError: form.getBoundary is not a function
TypeError: form.getBoundary is not a function
Could you please advise on how to correctly implement these methods, or suggest an alternative approach to handle multipart/form-data in Cloudflare Workers? Your guidance on how to properly structure this type of request would be greatly appreciated.