Differences

This shows you the differences between two versions of the page.

Link to this comparison view

public:howto:htmlforms [2012/01/27 11:55]
rasc
public:howto:htmlforms [2012/01/27 11:56] (current)
rasc formatting corrected, boundary MUST be separated by semicolon
Line 13: Line 13:
 const const
   FIELD_MASK = CRLF + '--%s' + CRLF +   FIELD_MASK = CRLF + '--%s' + CRLF +
-              'Content-Disposition: form-data; name="%s"' + CRLF + CRLF +              'Content-Disposition: form-data; name="%s"' + CRLF + CRLF+
-++
               '%s';               '%s';
 begin begin
Line 21: Line 20:
   try   try
     s := '--' + Bound + CRLF;     s := '--' + Bound + CRLF;
-    s := s + 'content-disposition: form-data; name="' + FieldName + +    s := s + 'content-disposition: form-data; name="' + FieldName + '";';
-'";';+
     s := s + ' filename="' + FileName +'"' + CRLF;     s := s + ' filename="' + FileName +'"' + CRLF;
     s := s + 'Content-Type: Application/octet-string' + CRLF + CRLF;     s := s + 'Content-Type: Application/octet-string' + CRLF + CRLF;
public/howto/htmlforms.txt · Last modified: 2012/01/27 11:56 by rasc
Driven by DokuWiki Recent changes RSS feed