dhtmlXVault

hi,



i have a problem with the component dhtmlxVault when uploading a file.



my conclusion:

the problem appears because the result of the method “workerRequest.GetPreloadedEntityBody();” is null.





[code]



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();

CurrentBytesTransfered += preloadedBufferData.Length;



[code]



how can i solve this problem?



thanks. Hugo.