Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:purplecabbage/incubator-cordova-wp7
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Apr 20, 2012
2 parents b33d6aa + 15198b2 commit 3a5cba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/Cordova/Commands/FileTransfer.cs
Expand Up @@ -406,6 +406,7 @@ private void WriteCallback(IAsyncResult asynchronousResult)
string headerTemplate = "Content-Disposition: form-data; name=\"{0}\"; filename=\"{1}\"" + lineEnd + "Content-Type: {2}" + lineEnd + lineEnd;
string header = string.Format(headerTemplate, uploadOptions.FileKey, uploadOptions.FileName, uploadOptions.MimeType);
byte[] headerBytes = System.Text.Encoding.UTF8.GetBytes(header);
requestStream.Write(boundaryBytes, 0, boundaryBytes.Length);
requestStream.Write(headerBytes, 0, headerBytes.Length);
byte[] buffer = new byte[4096];
int bytesRead = 0;
Expand Down

0 comments on commit 3a5cba8

Please sign in to comment.