size exceeded при запросе
const response = await axios.post(uploadURL, formData, { headers });
formData - преобразованный видео файл. Никто не сталкивался с такой проблемой?
Размер файла слишком велик
Код formData покажи
<ref *1> { fieldname: 'video', filename: 'Как сделать вкусную яичницу. Рецепт от Ивана!.mp4', encoding: '7bit', mimetype: 'video/mp4', file: FileStream { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: false, ended: true, endEmitted: true, reading: false, sync: false, needReadable: false, emittedReadable: false, readableListening: true, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, errored: null, closed: true, closeEmitted: true, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, decoder: null, encoding: null, [Symbol(kPaused)]: null }, _events: [Object: null prototype] { end: [Array], limit: [Function (anonymous)], readable: [Function: next], error: [Function (anonymous)], close: [Function (anonymous)] }, _eventsCount: 5, _maxListeners: undefined, bytesRead: 15522857, truncated: false, _read: [Function (anonymous)], [Symbol(kCapture)]: false }, fields: { video: [Circular *1] }, _buf: <Buffer 00 00 00 18 66 74 79 70 6d 70 34 32 00 00 00 00 69 73 6f 6d 6d 70 34 32 00 01 23 44 6d 6f 6f 76 00 00 00 6c 6d 76 68 64 00 00 00 00 e1 49 cb 6f e1 49 ... 15522807 more bytes>, toBuffer: [AsyncFunction: toBuffer] }
Обсуждают сегодня