Kbase P6314: WEB-CONTEXT:FORM-INPUT truncates the data at the first null
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  08/01/2004 |
|
Status: Verified
FACT(s) (Environment):
WebSpeed 3.1C
FACT(s) (Environment):
WebSpeed 3.1D
SYMPTOM(s):
Can not access data after loading a binary file into a web object using
<input type="file" name="inputfile">
WEB-CONTEXT:FORM-INPUT appears to be truncating the data at the first null character with a binary file
CAUSE:
WEB-CONTEXT:FORM-INPUT truncates data! The FORM-INPUT attribute is designed to stop processing when it hits the first null, signaling the end of a string. The documentation also says "Do not access this attribute."
FIX:
This is an expected behavior. The browser is correctly setting boundaries in the data, and the content type for the binary part is correctly set as "application/octet-stream". The CONTENT_LENGTH gets set to the correct value, but data in web-context:form-input is truncated at the first null byte in the data.