{
nsIInputStream uploadStream = upload.getUploadStream();
if( uploadStream != null && uploadStream.available() > 0 )
{
nsISeekableStream seekable = ( nsISeekableStream )uploadStream
.queryInterface( nsISeekableStream.NS_ISEEKABLESTREAM_IID );
long pos = seekable.tell();
long available = uploadStream.available();