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
- Define upload endpoints and file selection flow
- Configure upload plugin capabilities and scope
- Implement progress callbacks and error handling
- 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
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/upload/
- https://v2.tauri.app/zh-cn/plugin/upload/
Keywords
tauri upload, file transfer, progress, headers
Common Gotchas (Gotchas)
- Version compatibility: Pay attention to the compatibility between framework versions and dependency libraries; APIs may differ across versions.
- Configuration file format: Configuration file format errors are the most common problem; it is recommended to use your editor's syntax checking.
- Environment variables: Ensure all necessary environment variables are set correctly; do not hard-code sensitive information.
- Dependency conflicts: Watch out for dependency conflicts when multiple versions coexist; use a lock file to pin versions.
- 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.