@warleon/n8n-nodes-payload-cms 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -459,7 +459,10 @@ class PayloadCms {
459
459
  const fileName = binaryData.fileName;
460
460
  const mimeType = binaryData.mimeType;
461
461
  const formData = new FormData();
462
- formData.append("file", fileBuffer, fileName);
462
+ formData.append("file", fileBuffer, {
463
+ filename: fileName,
464
+ contentType: mimeType,
465
+ });
463
466
  if (data) {
464
467
  const sanitizeData = typeof data === "string" ? JSON.parse(data) : data;
465
468
  formData.append("_payload", JSON.stringify(sanitizeData));
@@ -491,6 +494,7 @@ class PayloadCms {
491
494
  });
492
495
  }
493
496
  catch (error) {
497
+ console.error("PayloadCMS Error:", error);
494
498
  if (this.continueOnFail()) {
495
499
  returnData.push({
496
500
  json: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warleon/n8n-nodes-payload-cms",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Dynamic n8n node for Payload CMS that auto-discovers collections and operations forked and extended from https://github.com/leadership-institute/n8n-payload-dynamic",
5
5
  "main": "dist/index.js",
6
6
  "author": "warleon",