Skip to content

Commit

Permalink
Merge pull request #1 from mateo-gallardo/feature/multipart-files/fil…
Browse files Browse the repository at this point in the history
…es-browser-fix

Fixed electron files browser for Multipart Form files
  • Loading branch information
maxdestors committed Jan 31, 2024
2 parents fa00e26 + 1bef11b commit 848a4fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bruno-electron/src/ipc/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
// browse directory for file
ipcMain.handle('renderer:browse-files', async (event, pathname, request, filters) => {
try {
const filePath = await browseFiles(mainWindow, filters);
const filePaths = await browseFiles(mainWindow, filters);

return filePath;
return filePaths;
} catch (error) {
return Promise.reject(error);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bruno-electron/src/utils/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const browseDirectory = async (win) => {

const browseFiles = async (win, filters) => {
const { filePaths } = await dialog.showOpenDialog(win, {
properties: ['multiSelections'],
properties: ['openFile', 'multiSelections'],
filters
});

Expand Down

0 comments on commit 848a4fd

Please sign in to comment.