How to disable attachment uploads when Confluence is read-only

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

本ページの内容には、Atlassian ソフトウェアのカスタマイズや拡張 (CSS ルール、HTML、JavaScript の追加/変更など) を行う手順が含まれています。アトラシアン サポートの提供 の通り、Atlassia 製品に加えられたカスタマイズはサポートされません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。

本件またはカスタマイズに関するご質問は、コミュニティの Atlassian Answers で質問してください。または、アトラシアン ソリューション パートナー にご相談いただくことをご検討ください。

目的

The information on this page does not apply to sites running Confluence Data Center 6.10 or later, which provides the ability to make your site read-only. See Using read-only mode for site maintenance for more information. 

If you want to disable the attachments upload feature in a Confluence instance where the read-only mode feature is not available, the workaround below may work for your site:

回避策

Code Changes Required

This configuration requires changing the Confluence code in your installation. You will need to reapply these changes whenever you upgrade Confluence. Proceed with caution.

  1. Ensure that you've followed one of the methods outlined in this KB article to set your Confluence instance as Read-Only.
  2. Confluence を停止します。
  3. Navigate to <Confluence-Installation>/confluence/pages folder.
  4. Modify the viewattachments.vm file by commenting the following section:
    #if( $action.hasAttachFilePermissions() )
        <div id="upload-div" class="attachment-section">
              #parse ("/pages/uploadattachments.vm")
        </div>
    #end
  5. Confluence を再起動します。

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.