def METHOD_NAME(self):
    options = [
        QtWidgets.QFileDialog.DontResolveSymlinks,
        QtWidgets.QFileDialog.DontUseNativeDialog
    ]
    folders = False
    if folders:
        # browse folders specifics
        caption = "Browse folders to publish image sequences"
        file_mode = QtWidgets.QFileDialog.Directory
        options.append(QtWidgets.QFileDialog.ShowDirsOnly)
    else:
        # browse files specifics
        caption = "Browse files to publish"
        file_mode = QtWidgets.QFileDialog.ExistingFiles
    # create the dialog
    file_dialog = QtWidgets.QFileDialog(parent=self, caption=caption)
    file_dialog.setLabelText(QtWidgets.QFileDialog.Accept, "Select")
    file_dialog.setLabelText(QtWidgets.QFileDialog.Reject, "Cancel")
    file_dialog.setFileMode(file_mode)
    # set the appropriate options
    for option in options:
        file_dialog.setOption(option)
    # browse!
    if not file_dialog.exec_():
        return
    # process the browsed files/folders for publishing
    paths = file_dialog.selectedFiles()
    self.drop_frame._process_paths(paths)