diff options
author | brandonmwest <brawest@gmail.com> | 2012-07-12 16:38:51 -0600 |
---|---|---|
committer | brandonmwest <brawest@gmail.com> | 2012-07-12 16:38:51 -0600 |
commit | 35a374788ac73cc4e49e49bc640206ad2480e501 (patch) | |
tree | d1bf8113a504d66fab0eace18d229a55655e02b4 /SendGrid/SendGridMail/Transport/Web.cs | |
parent | 30b64ab72818fa6dcbcfb90037e68baa66174185 (diff) | |
download | sendgrid-csharp-35a374788ac73cc4e49e49bc640206ad2480e501.zip sendgrid-csharp-35a374788ac73cc4e49e49bc640206ad2480e501.tar.gz sendgrid-csharp-35a374788ac73cc4e49e49bc640206ad2480e501.tar.bz2 |
Change line 88 based on this pull request: https://github.com/sendgrid/sendgrid-csharp/pull/6. Fixes this issue: https://github.com/sendgrid/sendgrid-csharp/issues/2
Diffstat (limited to 'SendGrid/SendGridMail/Transport/Web.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Transport/Web.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs index 8e0c512..885f482 100755 --- a/SendGrid/SendGridMail/Transport/Web.cs +++ b/SendGrid/SendGridMail/Transport/Web.cs @@ -85,7 +85,7 @@ namespace SendGridMail.Transport private void AttachFiles(ISendGrid message, MultipartEntity multipartEntity)
{
var files = FetchFileBodies(message);
- files.ForEach(kvp => multipartEntity.AddBody(new FileBody("files[" + kvp.Key + "]", kvp.Key, kvp.Value)));
+ files.ForEach(kvp => multipartEntity.AddBody(new FileBody("files[" + Path.GetFileName(kvp.Key) + "]", Path.GetFileName(kvp.Key), kvp.Value)));
}
private void CheckForErrors(CodeScales.Http.Methods.HttpResponse response)
|