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:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user