per page, with , order by , clip by
Results of 1 - 10 of about 18 for FileResponse (0.003 sec.)
Django 3.2.15 リリースノート — Django 6.1 ドキュメント 11273
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2.15 リリースノート ¶ 2022年8月3日 Django 3.2.15 では 3.2.14 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Pot ... ential reflected file download vulnerability in FileResponse ¶ An application may have been vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition head ... er of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. 目次 Django ... 3.2.15 リリースノート CVE-2022-36359: Potential reflected file download vulnerability in FileResponse 前のトピックへ Django 3.2.16 リリースノート 次のトピックへ Django 3.2.14 リリースノート 関連キーワード reflected download ...
https://man.mtool.work/django/6.1/releases/3.2.15.html
Django 4.0.7 リリースノート — Django 6.1 ドキュメント 11273
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.0.7 リリースノート ¶ 2022年8月3日 Django 4.0.7 では 4.0.6 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Potent ... ial reflected file download vulnerability in FileResponse ¶ An application may have been vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition head ... er of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. 目次 Django ... 4.0.7 リリースノート CVE-2022-36359: Potential reflected file download vulnerability in FileResponse 前のトピックへ Django 4.0.8 リリースノート 次のトピックへ Django 4.0.6 リリースノート 関連キーワード reflected download Fi ...
https://man.mtool.work/django/6.1/releases/4.0.7.html
Django 3.2.15 リリースノート — Django 6.1 ドキュメント 10929
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2.15 リリースノート ¶ 2022年8月3日 Django 3.2.15 では 3.2.14 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Pot ... ential reflected file download vulnerability in FileResponse ¶ An application may have been vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition head ... er of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. 目次 Django ... 3.2.15 リリースノート CVE-2022-36359: Potential reflected file download vulnerability in FileResponse 前のトピックへ Django 3.2.16 リリースノート 次のトピックへ Django 3.2.14 リリースノート 関連キーワード Django reflected fi ...
https://man.mtool.work/django/6.1/releases/3.2.15.html
Django 4.0.7 リリースノート — Django 6.1 ドキュメント 10929
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.0.7 リリースノート ¶ 2022年8月3日 Django 4.0.7 では 4.0.6 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Potent ... ial reflected file download vulnerability in FileResponse ¶ An application may have been vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition head ... er of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. 目次 Django ... 4.0.7 リリースノート CVE-2022-36359: Potential reflected file download vulnerability in FileResponse 前のトピックへ Django 4.0.8 リリースノート 次のトピックへ Django 4.0.6 リリースノート 関連キーワード Django reflected file ...
https://man.mtool.work/django/6.1/releases/4.0.7.html
PDFファイルを作成する — Django 6.1 ドキュメント 10586
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PDFファイルを作成する ¶ このドキュメントでは、Django のビューを使用して PDF ファイルを動的に出力する方法を説明します。これは、優れたオープンソースの ... 書く ¶ Django で PDF を動的に生成するときに重要な点は、ReportLab API がファイルライクなオブジェクトとして振る舞い、Django の FileResponse オブジェクトがファイルライクなオブジェクトを受け取るということです。 ここに、"Hello World"の例を示します: import io from d ... jango.http import FileResponse from reportlab.pdfgen import canvas def some_view ( request ): # Create a file-like buffer to receive PDF data. buffer = i ... . drawString ( 100 , 100 , "Hello world." ) # Close the PDF object cleanly, and we're done. p . showPage () p . save () # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. buffer . seek ( 0 ) return Fil ...
https://man.mtool.work/django/6.1/howto/outputting-pdf.html
PDFファイルを作成する — Django 6.1 ドキュメント 10500
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PDFファイルを作成する ¶ このドキュメントでは、Django のビューを使用して PDF ファイルを動的に出力する方法を説明します。これは、優れたオープンソースの ... 書く ¶ Django で PDF を動的に生成するときに重要な点は、ReportLab API がファイルライクなオブジェクトとして振る舞い、Django の FileResponse オブジェクトがファイルライクなオブジェクトを受け取るということです。 ここに、"Hello World"の例を示します: import io from d ... jango.http import FileResponse from reportlab.pdfgen import canvas def some_view ( request ): # Create a file-like buffer to receive PDF data. buffer = i ... . drawString ( 100 , 100 , "Hello world." ) # Close the PDF object cleanly, and we're done. p . showPage () p . save () # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. buffer . seek ( 0 ) return Fil ...
https://man.mtool.work/django/6.1/howto/outputting-pdf.html
リクエストとレスポンスのオブジェクト — Django 6.1 ドキュメント 8424
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » リクエストとレスポンスのオブジェクト ¶ 簡単な概要 ¶ Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います ... ttpResponse オブジェクトを返す前に長時間実行される操作を行う場合は、ビュー自体で 切断を処理する 必要があるかもしれません。 FileResponse オブジェクト ¶ class FileResponse ( open_file , as_attachment = False , filename = '' , ** kwargs ) [ソース] ¶ FileRespons ... パラメータを使用してカスタムファイル名を提供してください。 io.BytesIO のようなファイルライクオブジェクトを渡す場合、それを FileResponse に渡す前に seek() を行うのはあなたの仕事です。 open_file の内容から推測できる場合、 Content-Length ヘッダーは自動的に設定さ ... れます。 Content-Type ヘッダーは、 filename や open_file の名前から推測できる場合には自動的に設定されます。 FileResponse は、例えば以下のようにバイナリモードで開かれたファイルのような、バイナリー内容を持つあらゆるファイルライクオブジェクトを受 ...
https://man.mtool.work/django/6.1/ref/request-response.html
リクエストとレスポンスのオブジェクト — Django 6.1 ドキュメント 8321
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » リクエストとレスポンスのオブジェクト ¶ 簡単な概要 ¶ Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います ... ttpResponse オブジェクトを返す前に長時間実行される操作を行う場合は、ビュー自体で 切断を処理する 必要があるかもしれません。 FileResponse オブジェクト ¶ class FileResponse ( open_file , as_attachment = False , filename = '' , ** kwargs ) [ソース] ¶ FileRespons ... パラメータを使用してカスタムファイル名を提供してください。 io.BytesIO のようなファイルライクオブジェクトを渡す場合、それを FileResponse に渡す前に seek() を行うのはあなたの仕事です。 open_file の内容から推測できる場合、 Content-Length ヘッダーは自動的に設定さ ... れます。 Content-Type ヘッダーは、 filename や open_file の名前から推測できる場合には自動的に設定されます。 FileResponse は、例えば以下のようにバイナリモードで開かれたファイルのような、バイナリー内容を持つあらゆるファイルライクオブジェクトを受 ...
https://man.mtool.work/django/6.1/ref/request-response.html
Django 2.1 リリースノート — Django 6.1 ドキュメント 7635
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.1 リリースノート ¶ 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレー ... mesite argument to HttpResponse.set_cookie() to allow setting the SameSite cookie flag. The new as_attachment argument for FileResponse sets the Content-Disposition header to make the browser ask if the user wants to download the file. FileResponse also trie ...
https://man.mtool.work/django/6.1/releases/2.1.html
Django 2.1 リリースノート — Django 6.1 ドキュメント 7635
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.1 リリースノート ¶ 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレー ... mesite argument to HttpResponse.set_cookie() to allow setting the SameSite cookie flag. The new as_attachment argument for FileResponse sets the Content-Disposition header to make the browser ask if the user wants to download the file. FileResponse also trie ...
https://man.mtool.work/django/6.1/releases/2.1.html
PREV 1 2 NEXT