Most unsecured protocols like FTP, SMTP and HTTP run over TCP. There isn’t a standard api to use TCP with JavaScript because the browsers don’t allow it. But Workers do allow it so Cloudflare added a non standard api to use TCP directly. See the link above.
If you care enough to run your workload on Workers, this is a complicated but possible way to do it. You would look at the FTP spec online, and implement the minimum that you need, using the TCP stuff that Workers let you do. If you’re not comfortable with this endeavour there may be more sensible ways to solve your problem though
Hi, "Keep in mind that Workers have a memory limit of 128MB per Worker and loading particularly large files into a Worker’s memory multiple times may reach this limit. To ensure memory usage does not reach this limit, consider using Streams." https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
If I have private videos for users (think udemy f.ex.), are CF Streams my only option because of this Worker 128mb memory limit?
In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally.
The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
is there a way to add npm packages to a cloudflare email worker?
I was originally thinking of using standard workers with parse api from mail jet, but if I'm able to handle it all just using email workers it would be more optimal
Its an issue with multipart uploads, the form data is getting stripped. So when i do a check to see if “image/png” or “application/pdf” it fails to find that info. (I have an app front R2 and Images) so need to tell the app which location to upload to