Passer au contenu principal

Vue d'ensemble

Casdoor peut stocker des resources (fichiers, images) dans des fournisseurs de stockage. Configurez au moins un fournisseur de stockage et ajoutez-le à votre application, puis les utilisateurs peuvent téléverser et gérer des ressources.

resource_addProvider.png

Téléversement​

Les utilisateurs téléversent des fichiers ou images vers le stockage configuré pour l'application.

resource_upload.png

Les administrateurs globaux peuvent téléverser tout fichier. Pour tous les autres, y compris les administrateurs d'organisation, Casdoor accepte un téléversement uniquement s'il correspond à l'une de ces règles :

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

Casdoor rejette tout autre téléversement avec Unauthorized operation.

Suppression​

Pour supprimer une ressource, ouvrez-la et cliquez sur Delete.

resource_delete.png