Package muntjac :: Package ui :: Module upload :: Class IReceiver
[hide private]
[frames] | no frames]

Class IReceiver

source code

object --+
         |
        IReceiver

Interface that must be implemented by the upload receivers to provide the Upload component an output stream to write the uploaded data.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
receiveUpload(self, filename, mimeType)
Invoked when a new upload arrives.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

receiveUpload(self, filename, mimeType)

source code 

Invoked when a new upload arrives.

Parameters:
  • filename - the desired filename of the upload, usually as specified by the client.
  • mimeType - the MIME type of the uploaded file.
Returns:
Stream to which the uploaded file should be written.