Commit Graph

7 Commits

Author SHA1 Message Date
MarSeventh
013eb7cfee 尺寸提取功能优化 2026-01-30 17:15:22 +08:00
MarSeventh
1ca7a284a5 Fix:HuggingFace渠道文件命名和读取问题 2026-01-08 19:51:34 +08:00
axibayuit
579d835255 fix: remove duplicate url variable declaration in commitUpload.js 2025-12-31 21:46:40 +08:00
MarSeventh
77e04fa2a7 Feat:新增discord/huggingface渠道支持;优化telegram大文件上传体验 2025-12-31 09:23:38 +08:00
axibayuit
d0947e8770 fix: improve HuggingFace large file upload
- Fix commitUpload missing url parameter for endUpload
- Implement incremental SHA256 hash algorithm for large files
- Use 4MB chunks for SHA256 calculation to reduce memory pressure
- Support files of any size without memory overflow
2025-12-30 21:00:18 +08:00
axibayuit
9898364227 fix: use fetchUploadConfig instead of getUploadConfig 2025-12-30 20:45:58 +08:00
axibayuit
e973c65e9c feat(huggingface): implement direct upload for large files (>20MB)
- Add frontend direct upload to HuggingFace S3, bypassing CF Workers limits
- Add /api/huggingface/getUploadUrl endpoint to get LFS upload URLs
- Add /api/huggingface/commitUpload endpoint to commit file references
- Support multipart upload for very large files
- SHA256 computed in frontend to avoid CF Workers CPU timeout
- Small files (<20MB) still use proxy upload through CF Workers
2025-12-30 20:42:38 +08:00