返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

handling-storage-media

管理Appwrite存储的存储桶、权限和图像预览。在处理文件上传或显示图库图像时使用。

person作者: jakexiaohubgithub

Storage and Media Handling

When to use this skill

  • Managing tour images.
  • Implementing user profile avatars.
  • Generating thumbnails/previews.

Workflow

  • [ ] Create buckets in Appwrite (e.g., tours, avatars).
  • [ ] Set permissions (e.g., Public Read for tours).
  • [ ] Use storage.getFileView() or storage.getFilePreview() for URLs.

Rules

  • Max Size: 5MB for images.
  • Allowed Types: jpg, png, webp.
  • Optimization: Use Appwrite's built-in preview parameters (width, quality) to save bandwidth.

Instructions

  • Placeholders: Show a skeleton or generic travel image if the image fails to load.