elk icon indicating copy to clipboard operation
elk copied to clipboard

Image upload from photo library on macOS results in empty file being sent to the server

Open TheEnbyperor opened this issue 1 year ago • 1 comments

Pre-Checks

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • [X] Providing a screenshot or video to reproduce the issue or show visually what was meant.
  • [ ] I am willing to provide a PR.

Describe the bug

On macOS in the file selection dialog in addition to selecting a file from the local fs, it is also possible to select media from the user's iCloud library (pictures taken on their phone etc). Screenshot 2023-01-15 at 16 29 10

When one of these files is selected elk sends a POST request to the media upload API with a blank content, that is the following:

------WebKitFormBoundaryaPwDmoGLFo6pWAuA
Content-Disposition: form-data; name="file"; filename="IMG_8678.jpeg"
Content-Type: image/jpeg


------WebKitFormBoundaryaPwDmoGLFo6pWAuA--

I'm unsure why this happens and as such can't provide much insight into a possible solution.

Reproduction video or screenshot

No response

Additional Context

No response

TheEnbyperor avatar Jan 15 '23 15:01 TheEnbyperor