Skip to content

Commit 907ee40

Browse files
committed
Populate the Description field for uploaded files.
1 parent 31acf9e commit 907ee40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/github/cshubhamrao/AUtDv2/gui/UIController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public void initialize() {
112112
-> executor.execute(new MySqlRunner()));
113113

114114
btn_userAction.setOnAction((e) -> {
115-
GoogleDriveTask.UploadTask task = gDriveTask.new UploadTask(new File("log.txt"));
115+
GoogleDriveTask.UploadTask task = gDriveTask.new UploadTask(new File("log.txt"),
116+
"Log File created by AUtDv2");
116117
Future<String> resp = executor.submit(task);
117118
checkSuccess(resp);
118119
});
@@ -135,7 +136,8 @@ private void btn_backup_handler(ActionEvent e) {
135136
alert.showAndWait();
136137
} else {
137138
executor.execute(new MySqlDumpRunner(dbName, password));
138-
GoogleDriveTask.UploadTask task = gDriveTask.new UploadTask(new File(dbName + ".sql"));
139+
GoogleDriveTask.UploadTask task = gDriveTask.new UploadTask(new File(dbName + ".sql"),
140+
"Backup of Database: " + dbName);
139141
Future<String> resp = executor.submit(task);
140142
checkSuccess(resp);
141143
}

0 commit comments

Comments
 (0)