Navigieren auf digital.sbb.ch

Fileselector

1. What does the component do?

  • It is used for uploading files.

2. When should the component be used?

  • When an application requires one or more user files.

3. Rules

  • The system’s file browser opens when the ‘upload file’ button is clicked.
  • The uploaded files are shown in a list.
  • The list is sorted in chronological order of the upload.
  • An individual file can be removed from the list using the trash icon.
  • The list entry contains the icon of the file type, the file name and the file type and file size in brackets.
  • The file upload always indicates above the button which file types and sizes can be uploaded.

4. Variants and statuses

The component has the following statuses:

  • Default
  • Disabled

4.1 Standard

Image of the file selection component

Design specification

Code specification