chore: remove chunked uploads for now

This commit is contained in:
Hampus Kraft
2026-02-19 14:59:46 +00:00
parent bc2a78e5af
commit 1a1d13b571
59 changed files with 2 additions and 1456 deletions

View File

@@ -66,10 +66,6 @@ export const APIErrorCodes = {
CANNOT_SHRINK_RESERVED_SLOTS: 'CANNOT_SHRINK_RESERVED_SLOTS',
CAPTCHA_REQUIRED: 'CAPTCHA_REQUIRED',
CHANNEL_INDEXING: 'CHANNEL_INDEXING',
CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE: 'CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE',
CHUNKED_UPLOAD_INCOMPLETE: 'CHUNKED_UPLOAD_INCOMPLETE',
CHUNKED_UPLOAD_NOT_FOUND: 'CHUNKED_UPLOAD_NOT_FOUND',
CHUNKED_UPLOAD_NOT_OWNED: 'CHUNKED_UPLOAD_NOT_OWNED',
COMMUNICATION_DISABLED: 'COMMUNICATION_DISABLED',
CONNECTION_ALREADY_EXISTS: 'CONNECTION_ALREADY_EXISTS',
CONNECTION_INITIATION_TOKEN_INVALID: 'CONNECTION_INITIATION_TOKEN_INVALID',

View File

@@ -66,10 +66,6 @@ export const APIErrorCodesDescriptions: Record<keyof typeof APIErrorCodes, strin
CANNOT_SHRINK_RESERVED_SLOTS: 'Cannot shrink reserved slots',
CAPTCHA_REQUIRED: 'Captcha verification is required',
CHANNEL_INDEXING: 'Channel is currently being indexed',
CHUNKED_UPLOAD_CHUNK_INDEX_OUT_OF_RANGE: 'Chunk index is out of range for this upload',
CHUNKED_UPLOAD_INCOMPLETE: 'Not all chunks have been uploaded',
CHUNKED_UPLOAD_NOT_FOUND: 'Chunked upload session was not found',
CHUNKED_UPLOAD_NOT_OWNED: 'You do not own this chunked upload session',
COMMUNICATION_DISABLED: 'You are timed out in this guild',
CONNECTION_ALREADY_EXISTS: 'A connection of this type with this identifier already exists',
CONNECTION_INITIATION_TOKEN_INVALID: 'The connection initiation token is invalid or has expired',

View File

@@ -97,10 +97,6 @@ export const MAX_MESSAGE_CACHE_SIZE = MAX_MESSAGES_PER_CHANNEL * 5;
export const NEW_MESSAGES_BAR_BUFFER = 32;
export const CHUNKED_UPLOAD_CHUNK_SIZE = 8 * 1024 * 1024;
export const CHUNKED_UPLOAD_MAX_CHUNKS = 128;
export const CHUNKED_UPLOAD_SESSION_TTL_SECONDS = 3600;
export const VALID_TEMP_BAN_DURATIONS: ReadonlySet<number> = new Set([
1 * 3600,
12 * 3600,