FileUpload

public class FileUpload extends FileTransmission

Fields

buffers

Map<String, UploadBuffer> buffers

tmpDir

File tmpDir

Constructors

FileUpload

public FileUpload(String id)

Methods

cleanUp

public void cleanUp()

getFile

public FileProperties getFile(String fileId)

getFileBuffer

protected UploadBuffer getFileBuffer(String fileId)

getTmpDir

File getTmpDir()

getTransmissionSettings

public FileTransmissionSettings getTransmissionSettings()

upload

public TransmissionStatus upload(String fileId, ByteString data)

uploadChunk

public TransmissionStatus uploadChunk(String fileId, FileChunk chunk)