Navigieren auf digital.sbb.ch

Beta

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 files from a user.

3. Rules

  • Clicking on the ‘upload file’ button opens the system’s file browser.
  • The uploaded files are displayed in a list.
  • The list is sorted according to the 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
  • Uploaded
  • Disabled

4.1 Standard

Image of the component for uploading files

Design specification

Code specification