Die BPC Version 4.1 wird nicht mehr gewartet.

Sollten Sie diese BPC Version nutzen, empfehlen wir Ihnen eine Migration auf eine aktuelle Version. Die Dokumentation zur neusten BPC Version finden Sie hier. Sollten Sie Fragen haben, wenden Sie sich bitte an unseren Support.

File Field

This component represents a field for uploading a file.

Configuration

For general configuration options, see General Component Configuration.

Specific Configuration

value (string)

Content of the file as a Base64-encoded string. See also Binding Form Component Attributes

Example

filefield.json
{
  "metaData": {
    "author": "Virtimo AG",
    "name": "Live PReview Form",
    "id": 999999,
    "version": 1
  },
  "components": [
    {
      "layout": "vertical",
      "components": [
        {
          "id": "file-upload",
          "label": "Upload your file here",
          "type": "filefield",
          "value": "/data/fileBase64"
        },
        {
          "id": "submit",
          "label": "Submit",
          "type": "button",
          "action": "submit"
        }
      ],
      "type": "container"
    }
  ],
  "dataSchema": {},
  "configuration": {
    "defaultLanguage": "de",
    "submitUrl": "http://localhost:3000/foo"
  },
  "state": {
    "data": {},
    "language": "de"
  }
}
Embedded preview

Keywords: