I'm having same problem. I wonder if anyone has solved this yet as it isn't consistent with documentation. I'll try and implement given tutorial for "Processing files on the server".
UPDATE: I managed to get the logic working. I pass a parameter with file names to handler and when isFinalFileRequests is true at the end of last file i go through this parameter and work through all files. However I have a problem with isFinalFileRequest() method. If I have more than one file uploading it always throws an AccessViolationException.
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
No StackTrace or any hints. However, I was able to pinpoint it to isFinalFileRequest() method. Any ideas why would it be throwing this exception? and why only when multiple files are being uploaded; works fine with single file.
public override void ProcessStream()
// Suppose to be called on every single file.
// I file name is being changed and file is being put on sharepoint drive.