Visão Geral
O Casdoor pode armazenar resources (arquivos, imagens) em provedores de armazenamento. Configure pelo menos um provedor de armazenamento e adicione-o à sua application, então os usuários poderão fazer upload e gerenciar recursos.

Upload
Os usuários fazem upload de arquivos ou imagens para o armazenamento configurado para a aplicação.

Administradores globais podem fazer upload de qualquer arquivo. Para todos os outros, incluindo administradores de organização, o Casdoor aceita um upload apenas quando ele corresponde a uma destas regras:
| Upload | Rule |
|---|---|
| Avatar or ID card image of a user | The 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 user | The 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 application | Only an organization administrator, for an application of their organization, as an .html file |
| Direct upload to the bucket of a storage provider | Only an organization administrator |
O Casdoor rejeita qualquer outro upload com Unauthorized operation.
Exclusão
Para remover um recurso, abra-o e clique em Delete.
