Efficient large file upload with Yesod

后端 未结 1 1466
野性不改
野性不改 2021-02-02 17:56

I want to implement large file upload with my Yesod application. Right now I have:

module Handler.File where

import Import

import System.Random
import System.F         


        
相关标签:
1条回答
  • 2021-02-02 18:52
    1. Your solution is correct. The purpose of the maximumContentLength setting is to allow you to override this value for specific routes that need larger uploads.

    2. This is a shortcoming of the current setup of file handling in yesod-core. It's currently hard-coded to use in-memory file uploads. We've discussed on the mailing list in the past that this is suboptimal. I've just created a Github issue for this, and the fix will be included in Yesod 1.1 (no timetable on release though).

    3. I don't have an example of this, sorry.

    0 讨论(0)
提交回复
热议问题