SuperAPI AI Directory

tauri-app-upload

Coding & development

View repository

Updated 10-15 21:48

About this skill

When to use this skill

ALWAYS use this skill when the user mentions:

  • Uploading large files from desktop or mobile / 桌面或移动端的大文件上传
  • Progress callbacks or custom headers / 进度回调或自定义头
  • Reliable file transfer from local disk / 本地磁盘可靠文件传输

Trigger phrases include:

  • "upload", "progress", "headers", "retry"
  • "Upload", "Progress", "Headers", "Retry"

How to use this skill

  1. Define upload endpoints and file selection flow
  2. Configure upload plugin capabilities and scope
  3. Implement progress callbacks and error handling
  4. Validate performance and retries for large files

Outputs

  • Upload flow and retry plan / 上传流程与重试方案
  • Permission and performance checklist / 权限与性能清单

Scope

  • Boundary: Upload plugin usage only
  • Key points: Progress handling and custom headers

References

Keywords

tauri upload, file transfer, progress, headers

Common Gotchas (Gotchas)

  1. Version compatibility: Pay attention to the compatibility between framework versions and dependency libraries; APIs may differ across versions.
  2. Configuration file format: Configuration file format errors are the most common problem; it is recommended to use your editor's syntax checking.
  3. Environment variables: Ensure all necessary environment variables are set correctly; do not hard-code sensitive information.
  4. Dependency conflicts: Watch out for dependency conflicts when multiple versions coexist; use a lock file to pin versions.
  5. Performance pitfalls: Pay attention to performance optimization in large-data scenarios and avoid common issues such as N+1 queries.

Usage flow

Step 1: Environment preparation

Ensure the development environment has the necessary dependencies and tools installed.

Step 2: Configuration initialization

Perform basic configuration according to the project requirements.

Step 3: Using core features

Implement the core functionality according to the example code.

Step 4: Test verification

Run tests to ensure the functionality works properly.

Step 5: Deployment and launch

After development is complete, deploy and monitor.