mirror of https://github.com/logseq/logseq
Allow files no bigger than 20m
parent
3ee034f562
commit
dcef27dbd9
|
@ -66,8 +66,11 @@
|
|||
;; TODO: safe encoding asciis
|
||||
;; TODO: image link to another link
|
||||
(defn image-link [url href label]
|
||||
[:img {:src href
|
||||
:title (second (first label))}])
|
||||
[:img.rounded-sm.shadow-xs.mb-2.mt-2
|
||||
{:class "object-contain object-left-top"
|
||||
:style {:max-height "24rem"}
|
||||
:src href
|
||||
:title (second (first label))}])
|
||||
|
||||
(defn repetition-to-string
|
||||
[[[kind] [duration] n]]
|
||||
|
|
|
@ -545,8 +545,8 @@
|
|||
(defn request-presigned-url
|
||||
[file filename mime-type url-handler]
|
||||
(cond
|
||||
(> (gobj/get file "size") (* 5 1024 1024))
|
||||
(show-notification! [:p "Sorry, we don't support any file that's larger than 5MB."] :error)
|
||||
(> (gobj/get file "size") (* 20 1024 1024))
|
||||
(show-notification! [:p "Sorry, we don't support any file that's larger than 20MB."] :error)
|
||||
|
||||
:else
|
||||
(util/post (str config/api "presigned_url")
|
||||
|
|
Loading…
Reference in New Issue