Paul
Explore posts from serversCDCloudflare Developers
•Created by Paul on 9/14/2024 in #pages-help
Do not await a long running Promise and return early to user.
I am using SvelteKit and deploying to Cloudflare Pages.
In my SvelteKit Form Action (which is a Pages Function I think), what happens if I don't await an async operation and instead return early to the user. For instance, I have an endpoint which deletes images from Cloudflare Images, but I'd rather not make the user wait for that to happen, so I simply don't await the Promise.all that calls the Cloudflare API. It seems to be working great, but is this problematic?
Note: this delete operation is fire and forget since I'll run a cronjob to cleanup.
Example:
2 replies
CDCloudflare Developers
•Created by Paul on 2/11/2024 in #general-help
Cloudflare Images + File Upload Libraries
Are there any good file upload libraries that work with Cloudflare Images Direct Upload URL feature?
I’ve looked into dropzone, uppy and filepond but it’s not clear how these would work with the direct upload url.
4 replies
CDCloudflare Developers
•Created by Paul on 2/3/2024 in #pages-help
Is there Hyperdrive Support?
I'd like to use hyperdrive to manage the connections to my postgresql instance.
I'm using sveltekit with adapter-cloudflare.
Can I use Hyperdrive with cloudflare pages?
59 replies
CDCloudflare Developers
•Created by Paul on 2/1/2024 in #pages-help
Can i time my form submission?
I am using sveltekit with Cloudflare pages. I have a form where the user could submit some large image files. Is it possible to time how long the form takes to submit, completely on server side?
1 replies
CDCloudflare Developers
•Created by Paul on 1/26/2024 in #general-help
Uploading large image files on form submit
Hi all,
I have a cloudflare worker handing a form submit that includes image files. I then upload the image files in parallel to Cloudflare Images. The problem is, when I’m on a cellular connection, the form could take upwards of 30 seconds to upload a few images from my iPhone.
I noticed Cloudflare Images allows me to generate a public upload link so I can upload directly from client. Would this be faster than going through the cloudflare worker?
1 replies
CDCloudflare Developers
•Created by Paul on 1/21/2024 in #general-help
QR Code Forwarder
Hi everyone,
I'd like to use some tools from Cloudflare to create a QR code generator + forwarder service that can support an unlimited amount of qr codes that forward to wherever the end user decides.
I'm seeing that bulk redirects can support lists of up to 10,000 items, but I was hoping for a way that would support an unlimited amount.
1 replies
CDCloudflare Developers
•Created by Paul on 1/17/2024 in #general-help
MJML on Cloudflare Worker
Has anyone got mjml to work on a cloudflare worker? I have also tried mjml-browser and I get “window not defined” error.
1 replies
CDCloudflare Developers
•Created by Paul on 12/31/2023 in #general-help
Cloudflare Images form validation
I’ll need to upload some photos on my cloudflare worker when the user submits the form. I’m wondering what kind of validation should I perform to make sure they are actually images? Does Cloudflare Images do any validation during upload?
2 replies
CDCloudflare Developers
•Created by Paul on 12/23/2023 in #general-help
Form with images
Hello, my website has a form where the user can attach multiple images. These could be sensitive images, so I'd like to send this form data to another user that should be able to view the images, but only that person should be able to view.
I don't need Cloudflare Images product. Should I use R2 for this? Is it possible to upload the images to a public bucket, but with the images only accessible by those that have the secret link?
21 replies
CDCloudflare Developers
•Created by Paul on 11/26/2023 in #general-help
Does Cloudflare offer a Kafka-like queue service?
I have an analytics product and I need to quickly push events onto a queue within my worker.
Does cloudflare offer some sort of Kafka like queue service, where I can have downstream consumers that subscribe and process these events?
3 replies
CDCloudflare Developers
•Created by Paul on 11/24/2023 in #general-help
Does Cloudflare offer a database solution for Analytics type data?
I'll have a stream of events, potentially TB's / month. Does cloudflare offer any NoSQL/SQL solution that could support saving this amount of data? There's also the need to do some basic querying on it later.
47 replies