[Bug] 버그 제보 이미지 첨부 안되는 버그

Open Beginner friendly
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
android, swift
Domain
mobile

Research direction

Start with uploadImages() in BugReportViewModel.swift and the existing ImageUploadResponse model in BugReportModels.swift; then inspect AndroidManifest.xml for media permissions. Confirm that image uploads decode the server's file_name response and that the required Android image-read permissions are declared. Done means image attachments no longer cause bug report submission to fail.

Written by the indexing model from the issue text.

Description

bug

버그 설명

버그 제보 화면에서 이미지를 첨부해도 업로드가 되지 않아 제보 자체가 실패함.

원인 분석

1. 이미지 업로드 응답 타입 불일치 (BugReportViewModel.swift)

서버가 {"file_name": [...]} JSON 객체를 반환하는데, uploadImages() 함수에서 [String].self로 디코딩 시도 → 디코딩 에러 발생 → 전체 제보 실패.

BugReportModels.swiftImageUploadResponse 모델이 이미 정의되어 있었으나 사용되지 않음.

2. Android 미디어 접근 권한 누락 (AndroidManifest.xml)

READ_MEDIA_IMAGES (Android 13+) 및 READ_EXTERNAL_STORAGE (Android ≤12) 권한이 없어 PhotosPickerItem.loadTransferable()이 이미지 데이터를 읽지 못함.

수정 사항

  • BugReportViewModel.swift: [String].selfImageUploadResponse.self, return response.fileNames
  • AndroidManifest.xml: READ_MEDIA_IMAGES, READ_EXTERNAL_STORAGE 권한 추가
Dominant language
Swift
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DSM-PICK/PiCK_Android_ADMIN

All issues in DSM-PICK/PiCK_Android_ADMIN

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.