mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
* init
* fix
* styling
* temporary workaround for 500 error
**Root cause:**
The autogenerated Dart OpenAPI client (`UsersApi.createProfileImage()`) had two issues:
1. It set `Content-Type: multipart/form-data` without a boundary, which overrode the correct header that Dart's `MultipartRequest` would set (`multipart/form-data; boundary=...`).
2. It added the file to both `mp.fields` and `mp.files`, creating a duplicate text field.
**Result:**
Multer on the server failed to parse the multipart body, so `@UploadedFile()` was `undefined` → accessing `file.path` in `UserService.createProfileImage()` threw → **500 Internal Server Error**.
**Workaround:**
Bypass the autogenerated method in `UserApiRepository.createProfileImage()` and send the multipart request directly using the same `ApiClient` (basePath + auth), ensuring:
- No manual `Content-Type` header (let `MultipartRequest` set it with boundary)
- File only in `mp.files`, not `mp.fields`
- Proper filename fallback
* Revert "temporary workaround for 500 error"
This reverts commit 8436cd402632ca7be9272a1c72fdaf0763dcefb6.
* generate route for ProfilePictureCropPage
* add route import
* simplify
* try this
* Revert "try this"
This reverts commit fcf37d2801055c49010ddb4fd271feb900ee645a.
* try patching
* Reapply "temporary workaround for 500 error"
This reverts commit faeed810c21e4c9f0839dfff1f34aa6183469e56.
* Revert "Reapply "temporary workaround for 500 error""
This reverts commit a14a0b76d14975af98ef91748576a79cef959635.
* fix upload
* Refactor image conversion logic by introducing a new utility function. Replace inline image-to-Uint8List conversion with the new utility in EditImagePage, DriftEditImagePage, and ProfilePictureCropPage.
* use toast over snack
* format
* Revert "try patching"
This reverts commit 68a616522a1eee88c4a9755a314c0017e6450c0f.
* Enhance toast notification in ProfilePictureCropPage to include success type for better user feedback.
* Revert "simplify"
This reverts commit
|
||
|---|---|---|
| .. | ||
| dev | ||
| editing | ||
| profile | ||
| search | ||
| cleanup_preview.page.dart | ||
| download_info.page.dart | ||
| drift_activities.page.dart | ||
| drift_album.page.dart | ||
| drift_album_options.page.dart | ||
| drift_archive.page.dart | ||
| drift_asset_selection_timeline.page.dart | ||
| drift_asset_troubleshoot.page.dart | ||
| drift_create_album.page.dart | ||
| drift_favorite.page.dart | ||
| drift_library.page.dart | ||
| drift_local_album.page.dart | ||
| drift_locked_folder.page.dart | ||
| drift_map.page.dart | ||
| drift_memory.page.dart | ||
| drift_partner_detail.page.dart | ||
| drift_people_collection.page.dart | ||
| drift_person.page.dart | ||
| drift_place.page.dart | ||
| drift_place_detail.page.dart | ||
| drift_recently_taken.page.dart | ||
| drift_remote_album.page.dart | ||
| drift_trash.page.dart | ||
| drift_user_selection.page.dart | ||
| drift_video.page.dart | ||
| local_timeline.page.dart | ||