summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CloudFile/src/Services/google_api.h2
-rw-r--r--plugins/CloudFile/src/Services/google_service.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/Services/google_api.h b/plugins/CloudFile/src/Services/google_api.h
index 2f5baa8eb3..793d0053c3 100644
--- a/plugins/CloudFile/src/Services/google_api.h
+++ b/plugins/CloudFile/src/Services/google_api.h
@@ -142,7 +142,7 @@ namespace GDriveAPI
JSONNode params(JSON_NODE);
params
<< JSONNode("name", path)
- << JSONNode("mimeType", "pplication/vnd.google-apps.folder");
+ << JSONNode("mimeType", "application/vnd.google-apps.folder");
json_string data = params.write();
SetData(data.c_str(), data.length());
diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp
index bbdf3255d7..42c08b6cc8 100644
--- a/plugins/CloudFile/src/Services/google_service.cpp
+++ b/plugins/CloudFile/src/Services/google_service.cpp
@@ -260,7 +260,7 @@ UINT CGDriveService::Upload(FileTransferParam *ftp)
for (size_t i = 0; i < chunkCount; i++) {
ftp->CheckCurrentFile();
size_t size = ftp->ReadCurrentFile(chunk, chunkSize);
- auto fileId = UploadFileChunk(uploadUri, chunk, size, offset, fileSize);
+ fileId = UploadFileChunk(uploadUri, chunk, size, offset, fileSize);
offset += size;
ftp->Progress(size);
}