Skip to content

Commit

Permalink
[Feat] HC-158 업로드 진행상황 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
sseho committed Oct 2, 2024
1 parent 44bc1c7 commit f0d1b5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/thread/ThreadComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
isLastPage: false,
files: null,
fileList: [],
uploadProgress: [], // 업로드 진행 상황
// uploadProgress: [], // 업로드 진행 상황
filesRes: null,
};
},
Expand Down Expand Up @@ -174,10 +174,10 @@ export default {
headers: {
'Content-Type': file.type, // 파일 타입 지정
},
onUploadProgress: (progressEvent) => {
const index = this.files.indexOf(file); // 인덱스 찾기
this.uploadProgress[index] = Math.round((progressEvent.loaded * 100) / progressEvent.total); // 업로드 진행상황 업데이트
},
// onUploadProgress: (progressEvent) => {
// const index = this.files.indexOf(file); // 인덱스 찾기
// this.uploadProgress[index] = Math.round((progressEvent.loaded * 100) / progressEvent.total); // 업로드 진행상황 업데이트
// },
};
await axios.put(presignedUrl, file, config)
Expand Down

0 comments on commit f0d1b5b

Please sign in to comment.