[ https://issues.apache.org/jira/browse/FILEUPLOAD-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17137842#comment-17137842 ]
Jochen Wiedmann commented on FILEUPLOAD-304: -------------------------------------------- What justifies your claim, that "if FileUpload is not involved: lines of text are terminated by LF"? > <TEXTAREA> value lines are terminated CR LF instead of just LF > -------------------------------------------------------------- > > Key: FILEUPLOAD-304 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-304 > Project: Commons FileUpload > Issue Type: Bug > Affects Versions: 1.4 > Reporter: Paul Pogonyshev > Priority: Minor > > Steps to reproduce: > * create a form with text area > * submit some multiline text through it > If the form doesn't contain any file inputs, i.e. if FileUpload is not > involved: lines of text are terminated by LF. > However, if there is a file input and you get the value using > FileItem.getString ("UTF-8"), text lines are terminated by CR LF. > As a result, CR LF can get into database. Additionally, database column size > limit can be exceeded even if you check for this on the client side (client > side always sees LF, on server side it gets transformed to CR LF, so text > length is increased). > I guess the same applies to any multiline text you submit within a multipart > form, e.g. if you set in JS: after arriving to the server, all LF get > transformed to CR LF. -- This message was sent by Atlassian Jira (v8.3.4#803005)