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