Uploading large files with Python/Django

后端 未结 3 670
面向向阳花
面向向阳花 2020-12-02 23:04

I am wondering if there are any ramifications in uploading files that are roughly 4GB in size through a web app using Django/Python? I remember in the past streaming uploads

3条回答
  •  猫巷女王i
    2020-12-02 23:37

    For future readers: To up the max filesize allowed with in memory storage set the following in your settings.py:

    FILE_UPLOAD_MAX_MEMORY_SIZE = 5242880 # make it 5Mb instead of 2Mb
    

    Of course this won't help you for 4Gb.

提交回复
热议问题