Commit Graph

11 Commits

Author SHA1 Message Date
Texas0295
ace302111a [REF] unify file upload logic and pool utils
- merge putMediaToCloud and putFileToPool into putFileToCloud
  with FileUploadMode for media-safe vs generic uploads

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 22:38:49 +08:00
Texas0295
b80d91825a migrate file upload from tus to FileUploader API
The tus-based upload flow (/drive/tus) has been removed upstream in favor
of a new multipart upload protocol. This commit replaces all TusClient
usage with the new FileUploader service that follows the official
/drive/files/upload/{create,chunk,complete} endpoints.

Changes include:
- remove tus_client_dart dependency and related code
- add putFileToPool() backed by FileUploader.uploadFile()
- update uploadAttachment() to call the new putFileToPool
- preserve poolId support, filename, and mimetype handling
- ensure progress callbacks fire at start and completion

This aligns the client with the new upload protocol while keeping the
same Compose UI and settings logic introduced in earlier patches.

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:17 +08:00
Texas0295
269a64cabb add general file upload support with pool-aware tus client
- add "uploadFile" i18n key (en, zh-CN, zh-TW)
- introduce putFileToPool for tus upload with X-FilePool header
- add ComposeLogic.pickGeneralFile for arbitrary files
- extend uploadAttachment to support poolId override
- add toolbar button for general file upload

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:11 +08:00
9bdd08d8dd New protocol to upload file 2025-09-21 18:46:48 +08:00
edd760fbcb Ability to crop image 2025-08-04 22:08:18 +08:00
3a4faac8cb 🐛 Dozens of bug fixes 2025-07-18 18:57:16 +08:00
0361f031db Post editor tags 2025-06-27 00:56:07 +08:00
15a5848785 Client side remove GPS EXIF 2025-06-18 23:07:51 +08:00
33e84805d7 :drunk: I have no idea what did I did 2025-06-02 22:51:52 +08:00
937e249b87 Crop image for profile picture, background 2025-05-05 21:48:06 +08:00
aed2160760 Profile editing & file upload 2025-04-25 23:04:26 +08:00