Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添付ファイルを開いたときにブラウザで開くようにする #144

Open
arata-nvm opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@arata-nvm
Copy link
Member

diff --git a/crates/sos24-domain/src/entity/file_object.rs b/crates/sos24-domain/src/entity/file_object.rs
index f5276fb..7170c79 100644
--- a/crates/sos24-domain/src/entity/file_object.rs
+++ b/crates/sos24-domain/src/entity/file_object.rs
@@ -64,7 +64,7 @@ impl From<FileName> for ContentDisposition {
 
 fn generate_content_disposition(value: &[u8]) -> String {
     format!(
-        "attachment; filename*=UTF8''{}",
+        "inline; filename*=UTF8''{}",
         percent_encoding::percent_encode(value, NON_ALPHANUMERIC)
     )
 }
@arata-nvm arata-nvm added the P-low label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant