Fork me on GitHub
#luminus
<
2018-01-01
>
donyorm17:01:39

I was looking at various issues and couldn't find where prone is enabled in the template by default. @yogthos do you know what file has those settings?

yogthos20:01:20

@romain I updated the upload middleware to work with the latest Ring, let me know if it works for you https://github.com/luminus-framework/ring-upload-progress

romain23:01:07

Thanks, I will check it tomorrow

yogthos03:01:45

it's also using Apache fileupload

yogthos03:01:48

looks like all you have to do is:

(wrap-defaults
      (-> site-defaults
          (assoc-in [:security :anti-forgery] false)
          (assoc-in [:params :multipart]
                    {:progress-fn
                     (fn [request bytes-read content-length item-count]
                       (println "bytes read:" bytes-read
                                "\ncontent length:" content-length
                                "\nitem count:" item-count))})))

romain12:01:04

I don't know if I must admire you or fear you. I played with the example and it's great. Thanks for so much work!

romain13:01:22

I added the middleware in picture galery f example and I don't have console print. I miss something.