Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add photo uploads for Snap.as users #187

Open
AngeloStavrow opened this issue Jun 2, 2021 · 0 comments
Open

Add photo uploads for Snap.as users #187

AngeloStavrow opened this issue Jun 2, 2021 · 0 comments
Labels
enhancement New feature or request ios Anything specific to the iPhone/iPad app mac Anything specific to the Mac app

Comments

@AngeloStavrow
Copy link
Collaborator

We've seen a couple of requests from Write.as Pro users to add a way to upload photos to Snap.as and have them added to posts.

On login, we could:

  1. If the instance's server URL is https://write.as, try to authenticate against Snap.as
  2. If Snap.as authentication works, set a new UserDefaults property, isSnapAsUser (or similar) to true

Then, when presenting the menu, conditionally add an "Add photo" entry if isSnapAsUser is true. Tapping this would open the photo picker, and when the user picks an image, uploads it to Snap.as via the API. The returned URL is then pasted into the draft at the insertion point as a Markdown link.

Questions and Concerns

  • ⚠️ We should probably block the UI during upload with an activity indicator overlay to prevent the user from continuing to type, and then being suddenly surprised when an image link is dropped into the text.
  • ⚠️ We'd have to periodically check that the user is still a Write.as Pro subscriber and, if they're not, unset the isSnapAsUser setting in UserDefaults.
  • ❓ How should we handle multiple photo uploads (if at all)?
@AngeloStavrow AngeloStavrow added enhancement New feature or request ios Anything specific to the iPhone/iPad app mac Anything specific to the Mac app labels Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ios Anything specific to the iPhone/iPad app mac Anything specific to the Mac app
Development

No branches or pull requests

1 participant