public class UploadReceiver
extends org.vaadin.easyuploads.FileBuffer
FileBuffer
.FieldType.FILE
.Modifier and Type | Field and Description |
---|---|
static String |
INVALID_FILE_NAME |
Constructor and Description |
---|
UploadReceiver(File directory,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
String |
getExtension() |
org.vaadin.easyuploads.FileFactory |
getFileFactory() |
String |
getFileName() |
long |
getFileSize() |
String |
getMimeType() |
OutputStream |
receiveUpload(String filename,
String MIMEType) |
void |
setFileName(String fileName) |
void |
setLastFileName(String s) |
void |
setLastMimeType(String s) |
public static final String INVALID_FILE_NAME
@Inject public UploadReceiver(File directory, info.magnolia.i18nsystem.SimpleTranslator i18n)
public OutputStream receiveUpload(String filename, String MIMEType)
receiveUpload
in class org.vaadin.easyuploads.FileBuffer
public org.vaadin.easyuploads.FileFactory getFileFactory()
getFileFactory
in class org.vaadin.easyuploads.FileBuffer
public String getFileName()
public long getFileSize()
public String getMimeType()
public String getExtension()
public void setFileName(String fileName)
public void setLastMimeType(String s)
public void setLastFileName(String s)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.