メインコンテンツにスキップ

概要

Casdoorは、ストレージプロバイダーにリソース(ファイル、画像)を保存できます。少なくとも1つのストレージプロバイダーを設定し、それをapplicationに追加すると、ユーザーはリソースをアップロードおよび管理できるようになります。

resource_addProvider.png

アップロード​

ユーザーは、アプリケーション用に設定されたストレージにファイルや画像をアップロードします。

resource_upload.png

グローバル管理者は任意のファイルをアップロードできます。他のすべてのユーザー(組織管理者を含む)については、以下のルールのいずれかに一致する場合のみ、Casdoorはアップロードを受け入れます:

UploadRule
Avatar or ID card image of a userThe file is stored as <tag>/<organization>/<username>.<extension>, where <tag> is avatar or an ID card tag such as idCardFront, and is an image: .png, .jpg, .jpeg, .gif, .webp, .bmp, or .ico
Other files of a userThe file is stored under resource/<organization>/<username>/ and isn't active content that a browser runs: .html, .htm, .xhtml, .shtml, .svg, .svgz, .xml, .xsl, .js, .mjs, .php, .phtml, .jsp, .asp, .aspx, .swf, or .hta
Terms of use of an applicationOnly an organization administrator, for an application of their organization, as an .html file
Direct upload to the bucket of a storage providerOnly an organization administrator

その他のアップロードはすべて、Unauthorized operationにより拒否されます。

削除​

リソースを削除するには、そのリソースを開いてDeleteをクリックします。

resource_delete.png