Skip to content

Commit

Permalink
fix: Uploading files does not require loading into memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrus.chen committed Apr 2, 2024
1 parent 81f271f commit a96e209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ops/dev/backend-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ metadata:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/upstream-vhost: basicai-dataset-tmp-minio-endpoint.alidev.beisai.com
nginx.ingress.kubernetes.io/proxy-body-size: 1000m
nginx.ingress.kubernetes.io/proxy-body-size: 1048576m
name: minio
spec:
ingressClassName: nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import Icon, { SvgIcon } from '/@/components/Icon';
import { FileItem } from './uploadTyping';
import { UploadResultStatus } from '/@/components/Upload/src/typing';
import { getBufferWithFile } from '/@/components/Upload/src/helper';
import {
generatePresignedUrl,
uploadDatasetApi,
Expand Down Expand Up @@ -302,7 +301,7 @@
isUploading.value = false;
}
};
getBufferWithFile(fileItem.file).then(upload);
upload(fileItem);
} else {
isUploading.value = false;
}
Expand Down

0 comments on commit a96e209

Please sign in to comment.