We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c8b45 commit fe9919aCopy full SHA for fe9919a
processed_data/src/graphql/entities.rs
@@ -281,7 +281,12 @@ impl AutoProcFileAttachment {
281
.to_string(),
282
);
283
key.push(<Option<String> as Clone>::clone(&self.file_name).unwrap());
284
- key.to_string_lossy().to_string()
+ let key_str = key.to_string_lossy().to_string();
285
+ // Remove leading "/" if present
286
+ match key_str.strip_prefix('/') {
287
+ Some(stripped_key) => stripped_key.to_string(),
288
+ None => key_str,
289
+ }
290
}
291
292
0 commit comments