Translate all Chinese comments and strings to English

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 20:03:19 +08:00
parent 7d5918837b
commit 1d621bf304
57 changed files with 499 additions and 499 deletions

View File

@@ -50,28 +50,28 @@ async function upload(event) {
const formData = new FormData();
let uploadFile;
// 判斷是否有檔案
// Check if a file exists
if(target && target.files) {
uploadFile = target.files[0];
}
// 判斷檔案大小不可超過 90MB (90(MB)*1024(KB)*1024(Bytes)=94,371,840)
// File size must not exceed 90 MB (90*1024*1024 = 94,371,840 bytes)
if(uploadFile.size >= 94371840) {
fileInput.value = '';
return uploadFailedFirst('size');
}
// 將檔案加進 formData欄位一定要「csv
// Append the file to formData; the field name must be "csv"
formData.append('csv', uploadFile);
// 呼叫第一階段上傳 API
// Call the first-stage upload API
if(uploadFile) {
await filesStore.upload(formData);
}
if (uploadFile.name.endsWith('.csv')) {
uploadFileName.value = uploadFile.name.slice(0, -4);
} else {
// 處理錯誤或無效的文件格式
uploadFileName.value = ''; // 或者其他適合的錯誤處理方式
// Handle error or invalid file format
uploadFileName.value = ''; // Or other appropriate error handling
}
// 清除選擇文件
// Clear the selected file
if(fileInput) {
fileInput.value = '';
}