Urgent.News

What's breaking now, across thousands of outlets.

Tech

Evaluating Browser Storage Handoffs: React PUTs, Express Signing, Private Object Reads

Short answer: use a private object storage bucket, have an Express server create a short-lived presigned PUT URL, and let React upload the bytes directly; issue another signed download URL when an authorized user needs the object. This keeps file transfer out of the application server, but it is not a good fit for permanent public links or a deployment that needs self-service bucket CORS rules.…

To handle private object storage uploads and signed downloads, first set up a bucket during deployment. When an upload occurs, Express authenticates the user, generates a server-owned key, records the user_id and MIME type in the database, and then requests a presigned PUT URL from storage. React uploads the file to this returned URL using the PUT method. The platform credentials should remain on the server and never be sent with the browser's follow-up request.

Upon a successful upload, verify the object before marking the database row as ready. For private reads, the server confirms ownership and provides a new signed download URL. There should be no permanent public URLs in this design.

In Python, the control-plane code utilizes HTTP requests to interact with the storage system. It includes a `post_with_backoff` function to handle retries in case of failures, such as a 429 response. The `create_private_upload` function formats the path and sends a POST request to create the presigned URL. This approach ensures a seamless transfer process without burdening the application server with file transfer tasks.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

WebDAV Mount vs Network Drive: The Latency Test No One Talks About

Every WebDAV mount review says the same thing: "slightly slower than a local drive, but unnoticeable for daily use." That's a cop-out answer. I wanted actual numbers.

  • WebDAV mounts are only slightly slower than network drives in daily use.
  • Initial file opens show WebDAV mounts are 30-50% slower than network drives.
  • WebDAV mounts fail to reconnect automatically during temporary network disruptions.

Jackrabbit WebDAV Surfaces: 2,254 Body Matches Against 237 Titles

Jackrabbit WebDAV Surfaces: 2,254 Body Matches Against 237 Titles Apache Jackrabbit fixed two flaws on 2026-10-07, including a WebDAV session hijack rated 9.3 and an unsafe reflection issue in the…

  • Apache Jackrabbit has two vulnerabilities (CVE-2026-92414, CVE-2026-92415)
  • Jackrabbit's WebDAV endpoint exploited through body matches (2,254 matches vs. 237 titles)
  • Vulnerabilities fixed on October 7, 2026; upgrade recommended

More from Wednesday 14 October →