08-30-2012 03:50 AM
var contentError = false;
var contentSize = 0;
for each (field in formdata.fields) {
if (field.isFile) {
if (contentErrore == false) {
filename = Decoder.decodeHTML //custom function to get filename
contentSize = field.content.content.bytes.length;
if (contentSize > 20971520)
contentError = true;
else
content = field.content;
}
}
}
The problem is that on Windows the contentSize variable contains the real size of the document, whereas on Linux (RH 5.3) this value is about contentSize divided by 1.7.08-30-2012 04:23 AM
field.content.size
as this should not perform an implcit conversion.08-30-2012 08:06 AM
field.content.size
we always obtain -1 as result, no matter if the file is binary or text.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.