Skip to content

Commit

Permalink
Fix: Include file_name in PayloadHeader
Browse files Browse the repository at this point in the history
This change fixes issue #141 by including the file_name in the PayloadHeader when sending files. This allows Files sent from Linux to Windows to retain their names/extensions.
  • Loading branch information
SalmonSays authored Nov 3, 2024
1 parent 7a9c0e5 commit 12dfe11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core_lib/src/hdl/outbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,14 @@ impl OutboundRequest {
r#type: Some(payload_header::PayloadType::File.into()),
total_size: Some(curr_state.total_size),
is_sensitive: Some(false),
file_name: Some(
curr_state
.file_url
.file_name()
.unwrap()
.to_string_lossy()
.into_owned(),
),
..Default::default()
};

Expand Down

0 comments on commit 12dfe11

Please sign in to comment.