Hi Joep,
The _start and _length parameters are set in the netweb.clw file, _ParsePart method.
if you search on '_start' you should find it easily enough. You'll see some lines there;
self.SetValue(lower(clip(loc:name)) & '_start',p_start-1+x+4)
self.SetValue(lower(clip(loc:name)) & '_length',p_end-p_start + 1 -x-5)
In your case, you could add the following debug line after those 2;
self.trace('Incoming File: ValueName=' & clip(loc:name) & ' start=' & self.GetValue(lower(clip(loc:name)) & '_start') & ' length=' & lower(clip(loc:name)) & '_length')
that way you can see (in debugview) as the file comes in what the "name" (of the variable) is being set to, and also what the length and start values are being set to.
then you can compare that to the values of s and l and also the value of p_name in SaveFileToSession.
My guess is that the loc:name and p_name are not the same - but maybe you can confirm that?
Note that you can only use the SaveFileTo session on the same thread as the incoming file - ie not when the user clicks on "save" but only as the file arrives.
Cheers
Bruce