cheeaun / cheeaun/phanpy

Images restored from draft can't be posted in Safari

Open
#1,476 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.5k
Forks
186
Avg merge
1d 36m
Merged PRs (30d)
11

Description

### Site

phanpy.social

### Version

2026.02.24.48b2cf7

### Instance

carfree.city

### Browser

Safari 18 on iOS 18.7.5

### Bug description

In mobile Safari, when a post with images is being composed when Phanpy is closed (usually as a result of a crash or paging out of memory) and reopened, the draft appears to restore successfully with the images intact, but they all fail to upload with "Validation failed: File content type is invalid, File is invalid".

![Image](https://github.com/user-attachments/assets/bf152166-d79b-4d9c-be60-f38260343b03)

This is a longstanding bug: it has never worked for me in years of using Phanpy on mobile Safari. I just hadn't gotten around to reporting it.

### To reproduce

1. Compose a post
2. Attach one or more images
3. Close Phanpy or close the Phanpy tab
4. Reopen Phanpy
5. Attempt to post the saved draft

Result: Failure to post with the above-named error showing up once for each image.

### Expected behavior

Successful post, since the images appear to be intact in the UI.

### Other

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.