dhtmlXVault

Hi,



i have a problem with the implementation of the component.

when i upload a file on the code:



[code]

int uploadStatus = 0;

FileProcessor fp = new FileProcessor(“c:\misc\”);

fp._currentFileName = context.Request.QueryString[“fileName”];



HttpWorkerRequest workerRequest = (HttpWorkerRequest)context.GetType().GetProperty(“WorkerRequest”, BindingFlags.Instance | BindingFlags.NonPublic).GetValue(context, null);

if (workerRequest.HasEntityBody())

{

try

{

long contentLength = long.Parse((workerRequest.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength)));

long defaultBuffer = 100000;

long CurrentBytesTransfered = 0;

long receivedcount = 0;

MemoryStream mem = new MemoryStream(context.Request.ContentLength);





byte[] preloadedBufferData = workerRequest.GetPreloadedEntityBody();

[code]



the method “workerRequest.GetPreloadedEntityBody()” returns always null.



how can i fix this problem?



thanks.

Hugo