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: "Create a new attachment. [See the docs](https://developers.meistertask.com/reference/post-attachment)",
10
-
version: "0.0.1",
9
+
version: "0.1.0",
11
10
type: "action",
12
11
props: {
13
12
meistertask,
@@ -40,8 +39,8 @@ export default {
40
39
},
41
40
filepath: {
42
41
type: "string",
43
-
label: "File Path",
44
-
description: "Path of the file in /tmp folder to add as an attachment. To upload a file to /tmp folder, please follow the [doc here](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)",
42
+
label: "File Path or URL",
43
+
description: "The file to upload. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
45
44
},
46
45
name: {
47
46
type: "string",
@@ -50,14 +49,6 @@ export default {
50
49
optional: true,
51
50
},
52
51
},
53
-
methods: {
54
-
checkTmp(filename){
55
-
if(filename.indexOf("/tmp")===-1){
56
-
return`/tmp/${filename}`;
57
-
}
58
-
returnfilename;
59
-
},
60
-
},
61
52
asyncrun({ $ }){
62
53
const{
63
54
taskId,
@@ -66,16 +57,14 @@ export default {
66
57
}=this;
67
58
68
59
constdata=newFormData();
69
-
constpath=this.checkTmp(filepath);
70
60
71
-
if(!fs.existsSync(path)){
72
-
thrownewConfigurationError("File does not exist");
description: "Uploads a chosen file to PDFfiller. [See the documentation](https://docs.pdffiller.com/docs/pdffiller/992d9d79fec32-creates-a-new-document-template-by-uploading-file-from-multipart)",
Copy file name to clipboardExpand all lines: components/pdffiller/pdffiller.app.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,8 @@ export default {
44
44
},
45
45
file: {
46
46
type: "string",
47
-
label: "File",
48
-
description: "The path to the file saved to the `/tmp` directory (e.g. `/tmp/example.json`). [See the documentation](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory).",
47
+
label: "File Path or URL",
48
+
description: "The file to upload. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
description: "Upload a file to Pixelbin. [See the documentation](https://www.pixelbin.io/docs/api-docs/)",
11
-
version: "0.0.1",
10
+
version: "0.1.0",
12
11
type: "action",
13
12
props: {
14
13
app,
15
14
filePath: {
16
15
type: "string",
17
-
label: "File Path",
18
-
description: "Assete file path. The path to the file saved to the `/tmp` directory (e.g. `/tmp/example.pdf`). [See the documentation](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory).",
16
+
label: "File Path or URL",
17
+
description: "The file to upload. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
19
18
},
20
19
path: {
21
20
propDefinition: [
@@ -64,9 +63,6 @@ export default {
64
63
uploadFile(args={}){
65
64
returnthis.app.post({
66
65
path: "/upload/direct",
67
-
headers: {
68
-
"Content-Type": "multipart/form-data",
69
-
},
70
66
...args,
71
67
});
72
68
},
@@ -84,12 +80,15 @@ export default {
84
80
filenameOverride,
85
81
}=this;
86
82
87
-
if(!filePath.startsWith("/tmp/")){
88
-
thrownewConfigurationError("File must be located in `/tmp` directory.");
0 commit comments