RT#23598: Feature Request - Email notice to A/R Report Results [now uses checkboxes...
[freeside.git] / rt / lib / RT / Interface / REST.pm
index 17fe446..06d7f83 100644 (file)
@@ -328,7 +328,7 @@ sub process_attachments {
             Path => $tmp_fn,
             Type => $info->{'Content-Type'} || guess_media_type($tmp_fn),
             Filename => $file,
-            Disposition => "attachment",
+            Disposition => $info->{'Content-Disposition'} || "attachment",
         );
         $new_entity->bodyhandle->{'_dirty_hack_to_save_a_ref_tmp_fh'} = $tmp_fh;
         $i++;