Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
お問い合わせフォームから送信される電子メールの添付ファイルのファイルの種類を Doc、Docx、PDF に制限するにはどうすればよいですか?
そのためのスニペットがあります。
使用法は次のとおりです。
attachment = ExtFileField(ext_whitelist=(".pdf", ".txt"))