Implem / Implem.Pleasanter

Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
https://pleasanter.org
GNU Affero General Public License v3.0
511 stars 81 forks source link

サムネイル登録ができなくなりました。 #407

Closed ebessan closed 1 year ago

ebessan commented 1 year ago

前までは使用できたのですが、内容欄のカメラやビデオのボタンをおすとエラーが発生するようになりました。 エラー → Uncaught TypeError: Cannot read properties of undefined (reading 'getUserMedia') 内部で使用しているのでSSL化していなかったのですが、SSL化するしか解決策はないのでしょうか、、、

ebessan commented 1 year ago

Uncaught Error: Syntax error, unrecognized expression: [{"Method":"Log","Value":""},{"Method":"Message","Value":"{\"Id\":\"ApplicationError\",\"Text\":\"アプリケーションで問題が発生しました。\",\"Css\":\"alert-error\"}"}] at se.error (jquery-3.6.0.min.js:2:13639) at se.tokenize (jquery-3.6.0.min.js:2:21650) at se.select (jquery-3.6.0.min.js:2:22477) at Function.se [as find] (jquery-3.6.0.min.js:2:7116) at S.fn.init.find (jquery-3.6.0.min.js:2:25047) at new S.fn.init (jquery-3.6.0.min.js:2:25536) at S (jquery-3.6.0.min.js:2:1051) at Object. (generals.min.js?v=7d974946cafa8642c13392cb41c50e81a47a41fe3d565f102a5ca0e533524d86bd52b4f0583d5eacfcbf965b245c0846c176c9dd7e162e23186ae19aad6dbd11:1:2998) at c (jquery-3.6.0.min.js:2:28327) at Object.fireWith [as rejectWith] (jquery-3.6.0.min.js:2:29072)

ebessan commented 1 year ago

調べると、引用符に関するエラーの可能性があるらしいとの事で、、、

        return CanUploadImage(
            context: context,
            ss: ss,
            readOnly: readOnly,
            allowImage: allowImage,
            preview: preview)
                ? hb
                    .Div(
                        attributes: new HtmlAttributes()
                            .Class("ui-icon ui-icon-image button-upload-image")
                            .OnClick($"$p.selectImage('{controlId}');"))
                    .Div(
                        attributes: new HtmlAttributes()
                            .Class("ui-icon ui-icon-video")
                            .OnClick($"$p.openVideo('{controlId}');"),
                        _using: !mobile)
                    .TextBox(
                        controlId: controlId + ".upload-image-file",
                        controlCss: "hidden upload-image-file",
                        textType: HtmlTypes.TextTypes.File,
                        accept: "image/*",
                        dataId: controlId)
                : hb;

$p.selectImage = function (controlId) { $('[id="' + controlId + '.upload-image-file"]').click(); }

このあたりでしょうか、、、

ebessan commented 1 year ago

1

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.