Images now actually send filenames to the server. Server may still disregard them, but pleromer will actually detect mime type properly and generate a sane URL.

This commit is contained in:
2024-04-14 20:25:39 +10:00
parent 9e43a19084
commit f0ddcb8d6d
4 changed files with 13 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ function img(mainWindow, dir) {
for (var i = 0; i < fileNames.length; i++) {
var path = fileNames[i]
var bin = fs.readFileSync(path, 'base64')
e.sender.send('resizeJudgement', [bin, 'new'])
e.sender.send('resizeJudgement', [bin, 'new', fileNames[i]])
}
})
ipc.on('bmp-image', (e, args) => {