Compare commits

..

3 Commits

1 changed files with 2 additions and 0 deletions

View File

@ -182,8 +182,10 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
let file = new File([data], name, {
type: fileType
})
const stats = fs.statSync(path)
formData.append('file', file)
formData.append('md5', md5)
formData.append('lastModifyTime', stats.mtime.toLocaleString())
axios
.post(url, formData, config)
.then((response) => {