$len(%xmlarchivo) returns the length of the filename string, not the size of the file, use $file(%xmlarchivo).size
You'll need to /bread with this method because $read() will strip the whitespace and mess up the content-length
Last edited by Loki12583; 19/08/15 11:30 PM.