Jump to content

SendFile strange behavior


itognet

Recommended Posts

I am trying the SendFile example, and modified it alittle to send 10 files of .txt, .xlsx, .pdf

 

I can download all of them, one by one with UniSession.SendFile, it works fine.

 

But I cannot do this:

UniSession.SendFile('0.pdf');

UniSession.SendFile('1.pdf');

UniSession.SendFile('2.txt');

UniSession.SendFile('3.xlsx');

UniSession.SendFile('4.pdf');

UniSession.SendFile('5.pdf');

UniSession.SendFile('6.pdf');

UniSession.SendFile('8.pdf');

UniSession.SendFile('9.pdf');

 

 
Then it stop after 5 files. Is there at limit? I have tried multiple browser, same problem.

I also tried sending the same file 10 times, Only the first 5 is being sent.

 

But when I do the files one by one it works. Seems like a limit somewhere?

Link to comment
Share on other sites

MyApplication can SendFile more than 100 files.

 

for N := 1 to 100 do begin

   
    x_interval := 500;    
    if UniSession.Synchronize(x_interval) then begin    // Refresh the client at "X_INTERVAL" intervals
          ProgressBar.Position := N;
    end;
 
    Sleep(x_interval);
 
    UniSession.SendFile(Files(N));
end;
Link to comment
Share on other sites

  • 4 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...