fix(uploads): reclaim abandoned front-submit attachments
Mark new regular and chunked uploads as pending and claim persisted article references, including partial saves and large reference sets. Protect associated media from cleanup and add upload lifecycle regression coverage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f9b7997ec2
commit
32ac2112b0
10 files changed
+960
-26
No files matched your search
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
const assert = require('node:assert/strict');
|
||||
const { execFileSync } = require('node:child_process');
|
||||
const path = require('node:path');
|
||||
const test = require('node:test');
|
||||
|
||||
test('front-submit pending upload lifecycle runs against production PHP traits', () => {
|
||||
const harness = path.join(__dirname, 'front-submit-pending-harness.php');
|
||||
const output = execFileSync('php', [harness], { encoding: 'utf8' });
|
||||
assert.match(output, /Front-submit pending behavior harness passed/);
|
||||
});
|
||||
Reference in new issue
Block a user