Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipartURLLoader: CRLN characters added to the end of uploaded file #6

Open
GoogleCodeExporter opened this issue Nov 9, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Upload a plain text file containing "Hello World" (11 bytes)
2. Once uploaded, check the file and you'll notice that it's 13 bytes.
3. Characters CRLN were added to the file.

What is the expected output? What do you see instead?
Uploaded file should not have the CRLN characters at the end.

What version of the product are you using? On what operating system?
r118, Windows Vista 32-bit

Solution?
Under MultipartURLLoader.constructFilesPart() do not add a line break after 
the last file since closeFilePartsData() adds one right after.

if (i != _fileNames.length - 1) {
  postData = LINEBREAK(postData);
}
i++;

Original issue reported on code.google.com by Andres...@gmail.com on 26 Apr 2010 at 9:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant