Fork me on GitHub
#fulcro
<
2022-07-19
>
nivekuil09:07:27

I was reading through the raw stuff and saw https://github.com/fulcrologic/fulcro/blob/682093d70e9b803c2c24be67eedc8d1bd6d918e6/src/main/com/fulcrologic/fulcro/raw/components.cljc#L846 -- is this being used for all :use-hooks? components such that the shouldComponentUpdate behavior is functionally there for hook components too now?

surferHalo10:07:06

I've setup a fulcro file upload test, but found that can not upload file more than 8mb size, I can successfully upload one file or multiple files at once as long as the total size not exceed 8mb. Am I missing some config option that set the size limit? The server has no log, only the client report a "Remote Error"

Jakub Holý (HolyJak)11:07:54

I'd study docs of the http server you use. They tend to limit this.

👍 1
tony.kay23:07:18

yep, there is always a POST limit on your server

tony.kay23:07:37

in fact, if you deploy behind a gateway, often the gw has one, your server which acts as a proxy has one, etc. If you plan to dpeloy to AWS, for example, API gateway has a hard 10MB limit, and I think the load balancers do as well? Don’t remember on that…but I’ve had to resort to uploading to signed s3 urls in AWS for most large file use, which isn;t actually hard at all.

👍 2
tony.kay23:07:21

Nothing at all to do with Fulcro..these are sane limits put in place by the various web servers to ensure reasonable performance.

surferHalo02:07:23

Yes, thank you for pointing out, the http-kit has a run-server option :max-body limit to 8M.