Authenticated Upload
This live demo uses a cookie-based sign-in flow. Uploads succeed only after you sign in as one of the demo accounts below, so you can verify a real authenticated endpoint instead of a placeholder page.
What you should see: uploads only succeed while signed in. The endpoint requires authentication, so a signed-out visitor gets a rejection instead of a stored file.
Checking current session...
Sign in first, then upload a file to the authenticated endpoint.
Demo Accounts
User and Admin are both authenticated accounts. This page shares its session with the role-based demo so you can switch roles and test both pages quickly.
await fetch('/demo/security/auth/signin/admin', { method: 'POST' });
CoreUpload.create('#auth-uploader', {
uploadUrl: '/demo/security/authenticated-upload',
autoUpload: true
});