Shopware icon

Shopware

Shopware

Actions778

Document Management → Upload To Document

AI-generated

Overview

This node operation uploads a file to an existing document in a document management system by downloading the file from a specified URL and attaching it to the document identified by its Document Id. It is useful for automating the process of adding files to documents stored in a system, such as adding PDFs, images, or other file types to a document record.

Use Case Examples

  1. Automatically add a PDF file to a document record by providing the document ID and the URL of the PDF.
  2. Upload an image file to a document by specifying the file name, extension, and the URL where the image is hosted.

Properties

Name Meaning
Document Id Identifier of the document the new file should be added to.
File Name Name of the uploaded file.
Extension Extension of the uploaded file, e.g., 'pdf'.
Url The URL of the document file that will be downloaded and uploaded to the document.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and timeout configuration.

Output

JSON

  • documentId - The identifier of the document to which the file was uploaded.
  • fileName - The name of the uploaded file.
  • extension - The file extension of the uploaded file.
  • url - The URL from which the file was downloaded and uploaded.

Dependencies

  • An API key credential for authenticating with the document management system's API.

Troubleshooting

  • Ensure the Document Id is correct and exists in the document management system to avoid upload failures.
  • Verify the URL is accessible and points to a valid file to prevent download errors.
  • Check network settings such as proxy and SSL options if requests fail due to connectivity or security issues.
  • Adjust timeout settings if uploads are timing out due to slow server responses.

Discussion