Interface FileUploadField

All Superinterfaces:
Buffered, Component, Component.BelongToFrame, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Field<byte[]>, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasValidator<byte[]>, HasValue<byte[]>, HasValueSource<byte[]>, Requirable, SingleFileUploadField, UploadField, Validatable
All Known Implementing Classes:
FileUploadFieldImpl

@StudioComponent(xmlElement="fileUpload", category="Components", icon="io/jmix/ui/icon/component/fileUpload.svg", documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/file-upload-field.html", canvasBehaviour=BUTTON, canvasText="Upload", canvasTextProperty="uploadButtonCaption") public interface FileUploadField extends SingleFileUploadField, Field<byte[]>
Component for uploading files from client to server.
  • Field Details

  • Method Details

    • getFileName

      @Nullable String getFileName()
      Returns:
      caption to be shown in the file download link next to upload button
    • setFileName

      void setFileName(@Nullable String filename)
      Sets caption to be shown in the file download link next to upload button. The file name of the newly uploaded file will rewrite the caption.

      By default: "attachment (file_size Kb)".