|
@@ -60,16 +60,6 @@ export class UploaderController {
|
|
|
let mpFile: MultipartFile | undefined = Array.isArray(bodyFile)
|
|
let mpFile: MultipartFile | undefined = Array.isArray(bodyFile)
|
|
|
? bodyFile[0]
|
|
? bodyFile[0]
|
|
|
: bodyFile;
|
|
: bodyFile;
|
|
|
- // eslint-disable-next-line no-console
|
|
|
|
|
- console.warn('Uploader: file debug', {
|
|
|
|
|
- isMultipart: typeof reqAny.isMultipart === 'function' ? reqAny.isMultipart() : false,
|
|
|
|
|
- bodyFileType: typeof bodyFile,
|
|
|
|
|
- bodyFileIsArray: Array.isArray(bodyFile),
|
|
|
|
|
- bodyFileLength: bodyFile?.length,
|
|
|
|
|
- bodyFileKeys: bodyFile ? Object.keys(bodyFile).slice(0, 8) : [],
|
|
|
|
|
- mpFileType: typeof mpFile,
|
|
|
|
|
- mpFileKeys: mpFile ? Object.keys(mpFile).slice(0, 8) : [],
|
|
|
|
|
- });
|
|
|
|
|
if (!mpFile && reqAny.isMultipart?.()) {
|
|
if (!mpFile && reqAny.isMultipart?.()) {
|
|
|
mpFile = await reqAny.file();
|
|
mpFile = await reqAny.file();
|
|
|
}
|
|
}
|