ref: v3变更,,完成整合,同步v2.2508.4 -250902
This commit is contained in:
@@ -277,19 +277,21 @@ export function transferStaticFile(data: Record<string, any>) {
|
||||
*/
|
||||
export async function uploadFileToNE(
|
||||
neType: string,
|
||||
neId: string,
|
||||
neuid: string,
|
||||
coreUid: string,
|
||||
fileData: File,
|
||||
chunkSize: number = 1
|
||||
) {
|
||||
const uploadChunkRes = await uploadFileChunk(fileData, chunkSize, 'import');
|
||||
if (uploadChunkRes.code === RESULT_CODE_SUCCESS) {
|
||||
const transferToNeFileRes = await request({
|
||||
url: `/ne/action/pushFile`,
|
||||
url: `/ne/action/file/push`,
|
||||
method: 'POST',
|
||||
data: {
|
||||
uploadPath: uploadChunkRes.data.filePath,
|
||||
neType,
|
||||
neId,
|
||||
neuid,
|
||||
coreUid,
|
||||
delTemp: true,
|
||||
},
|
||||
timeout: 60_000,
|
||||
|
||||
Reference in New Issue
Block a user