Urgent.News

What's breaking now, across thousands of outlets.

Tech

Simple S3-Compatible Object Storage for Storing User-Uploaded Avatars Safely

The practical answer is to use private, S3-compatible object storage and make retention a policy owned by your application. That gives an avatar upload flow a familiar interface, while leaving room for per-tenant backups and selected-snapshot restores. It also keeps the dangerous parts visible: deletion, overwrites, and recovery are separate decisions. Infrai fits this workflow when the team…

When storing user-uploaded avatars, consider using private, S3-compatible object storage with retention policies owned by the application. This provides a familiar interface while allowing per-tenant backups and snapshot restores. The key aspects to focus on are deletion, overwrites, and recovery, which should be separate decisions.

Infrai is a suitable solution for this workflow when a team wants a single REST API and credential across storage and backend capabilities, without needing a separate storage SDK for each runtime. However, it is important to note that Infrai does not provide storage features it does not provide.

The on-call page typically shows issues after damage has occurred, such as a tenant reporting a missing profile image or a restore job returning a newer snapshot than the one selected by the operator. To create more useful alerts, monitor deletion candidates by tenant, successful and failed object writes, and the age and identifier of the snapshot selected for restoration.

Compare the deletion count with a bounded policy threshold and attach the tenant and policy version to the event. This will help create a guardrail rather than just a recovery mechanism.

When choosing between Amazon S3, Cloudflare R2, and Backblaze B2, consider your application's specific needs. Amazon S3 offers deep integration and mature lifecycle controls but has a larger policy surface to operate. Cloudflare R2 is attractive for applications already close to Cloudflare and seeking S3-compatible access, but it is designed for edge-oriented stacks. Backblaze B2 is a straightforward option with S3 compatibility but may require additional verification of its recovery design and operational features.

In summary, the unified API can reduce integration friction for teams already with several backend services. However, it is crucial to consider the storage capabilities, such as versioning, object lock, and cross-region replication, and ensure that objects do not have versioning or object lock for recoverability of accidental overwrites. Use deterministic, tenant-scoped keys and update the database pointer in one controlled workflow to maintain control over avatar storage.

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

What governments put out to tender in software, IT and marketing: November 2026 in numbers

Public buyers in the UK, the US, Canada, Ireland and the rest of Europe publish their tenders as open data. I counted the ones for digital work published between 2 and 16 November 2026: software, IT…

  • US led with 109 tenders, UK with 81, Ireland and Canada combined with 56 tenders.
  • Software was most common (153 notices), followed by IT/cyber (79) and marketing/creative work (52).

This e Binding: why the value changes with each call

Introduction This is one of the parts of JavaScript that generates the most confusion, because its value is not always what we expect when reading the code.

  • "this" keyword in JavaScript causes confusion
  • Early binding decided by static facts before execution
  • Late binding decided by dynamic facts during runtime

How to Remove Blank Pages from PDF with Python

Unwanted blank pages can appear when scanning, merging, or exporting PDFs. For example, duplex scanning may capture the empty backs of sheets, while document layouts can generate unnecessary blank…

  • Python script removes blank PDF pages using Spire.PDF and Pillow
  • IsBlank() method and SaveAsImage() detect blank pages
  • Pages are removed in reverse order to avoid index shifting

Qwen3-235B-A22B: China's Case for Large-Scale Open-Weight Inference

Originally published on juliancardozo.github.io. Qwen3-235B-A22B-Instruct-2507 condenses a trend that is redefining the open-weight market: large capacity models that activate a fraction of their…

  • Qwen3-235B-A22B from Alibaba uses only 1% of its 235B parameters per token.
  • Model supports 119 languages and dialects under Apache 2.0 license.
  • Extended context of 262K tokens may increase computational costs.

More from Tuesday 17 November →