feat: bring a picture in from a web address, and the Files pages (#1181) #1213
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/1181-pictures-and-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1181: bring a picture in from a web address, saved as an upload, and the Files pages. The owner's decisions are on #1181, including Q181 (a) and support access (17 Oct).
Server
a1181f11e5a1(now revisinga1190e7e0a01): where a stored picture came from (source_url,fetched_at, plus who added a page picture and when), andcampaigns.media_add_mode(editorsorgm_only). The mode is enforced on every upload route.POST …/lore/{eid}/attachments/from-url), for anyone who can edit the page. Suggesters can't.files.opened_by_adminto the audit log and returns a 120 s token bound to that admin.The fetcher (shared with the page-picture "from a web address")
Accept-Encoding: identityis sent, anyContent-Encodingis refused, and the cap counts wire bytes.fec0::/10,::/96and multicast are blocked, and embedded IPv4 addresses are checked;trust_env=False.Screens
Tests
tests/wikiand friends, 1768 passed; then the security fixes, 132 passed.integ/4.6.0): 10,333 backend tests and 187 journeys passed.CATALOGUE ids renumbered for 4.6.0: CAMP-22 and IS-515 to IS-521 (the line of the night's row is now IS-515).
🤖 Generated with Claude Code
5601788dand8773fe3ethat my earlier commit dropped (#1181) 96add4e6de