You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Upload a file to Google Drive. [See the documentation](https://developers.google.com/drive/api/v3/manage-uploads) for more information",
16
-
version: "1.0.3",
16
+
version: "1.1.0",
17
17
type: "action",
18
-
additionalProps,
19
18
props: {
20
19
googleDrive,
21
-
updateType,
22
20
drive: {
23
21
propDefinition: [
24
22
googleDrive,
@@ -38,21 +36,10 @@ export default {
38
36
"The folder you want to upload the file to. If not specified, the file will be placed directly in the drive's top-level folder.",
39
37
optional: true,
40
38
},
41
-
fileUrl: {
42
-
propDefinition: [
43
-
googleDrive,
44
-
"fileUrl",
45
-
],
46
-
optional: true,
47
-
hidden: true,
48
-
},
49
-
filePath: {
50
-
propDefinition: [
51
-
googleDrive,
52
-
"filePath",
53
-
],
54
-
optional: true,
55
-
hidden: true,
39
+
file: {
40
+
type: "string",
41
+
label: "File",
42
+
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFlie.pdf).",
56
43
},
57
44
name: {
58
45
propDefinition: [
@@ -84,32 +71,38 @@ export default {
84
71
"fileId",
85
72
],
86
73
label: "File to replace",
87
-
description: "Id of the file to replace. Leave it empty to upload a new file.",
74
+
description: "ID of the file to replace. Leave it empty to upload a new file.",
75
+
optional: true,
76
+
},
77
+
metadata: {
78
+
type: "object",
79
+
label: "Metadata",
80
+
description: "Additional metadata to supply in the upload. [See the documentation](https://developers.google.com/workspace/drive/api/reference/rest/v3/files) for information on available fields. Values will be parsed as JSON where applicable. Example: `{ \"description\": \"my file description\" }`",
thrownewConfigurationError(`Please include the file's original MIME type in the \`Mime Type\` prop. File will be converted to \`${metadata.mimeType}\`.`);
0 commit comments