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: "This action converts a base64-string-encoded file into the user-specified format. [See the documentation](https://v2.convertapi.com/info/openapi)",
8
-
version: "0.0.{{ts}}",
9
+
version: "0.0.1",
9
10
type: "action",
10
11
props: {
11
12
convertapi,
@@ -15,31 +16,61 @@ export default {
15
16
"base64String",
16
17
],
17
18
},
18
-
format: {
19
+
filename: {
20
+
type: "string",
21
+
label: "Filename",
22
+
description: "Converted output file name without extension. The extension will be added automatically.",
Copy file name to clipboardExpand all lines: components/convertapi/actions/convert-file/convert-file.mjs
+52-14
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,75 @@
1
+
importFormDatafrom"form-data";
2
+
importfsfrom"fs";
3
+
import{
4
+
checkTmp,saveFile,
5
+
}from"../../common/utils.mjs";
1
6
importconvertapifrom"../../convertapi.app.mjs";
2
-
import{axios}from"@pipedream/platform";
3
7
4
8
exportdefault{
5
9
key: "convertapi-convert-file",
6
10
name: "Convert File",
7
11
description: "Use this action to convert files to the chosen format. [See the documentation](https://v2.convertapi.com/info/openapi)",
8
-
version: "0.0.{{ts}}",
12
+
version: "0.0.1",
9
13
type: "action",
10
14
props: {
11
15
convertapi,
12
16
file: {
13
-
propDefinition: [
14
-
convertapi,
15
-
"file",
16
-
],
17
+
type: "string",
18
+
label: "File",
19
+
description: "The path to the file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)",
0 commit comments