Übersicht
Casdoor kann Ressourcen (Dateien, Bilder) in Speicher-Providern speichern. Konfigurieren Sie mindestens einen Speicher-Provider und fügen Sie ihn zu Ihrer Anwendung hinzu, damit Benutzer Ressourcen hochladen und verwalten können.

Hochladen
Benutzer laden Dateien oder Bilder auf den für die Anwendung konfigurierten Speicher hoch.

Globale Administratoren können jede Datei hochladen. Für alle anderen, einschließlich Organisationsadministratoren, akzeptiert Casdoor einen Upload nur, wenn er einer dieser Regeln entspricht:
| 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 |
Casdoor lehnt jeden anderen Upload mit Unauthorized operation ab.
Löschen
Um eine Ressource zu entfernen, öffnen Sie sie und klicken Sie auf Delete.
