Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
548 stars 59 forks source link

Upload photo directly to instance. #442

Open alsiniz opened 1 year ago

alsiniz commented 1 year ago

I can't seem to upload a photo when creating a post directly to a community. Memmy seems to default to uploading to imgur first which has its own content policies that often don't align with the policies of some instances/communities (NSFW).

I think photo post creation should default to uploading directly to the server or at least provide the option in the post creation screen.

Even wefwef.app allows photo uploads directly to the instance.

gkasdorf commented 1 year ago

So I agree with you that the policies do not match up. What we should probably do is offer some other options (I'll research what those options might be).

The reason that I am opposed to using other methods is in an attempt to help instances out. One of the biggest bottlenecks right now for instances is storage space. Several instances have infact enacted restrictions on file size (I believe that lemm.ee did this, limiting files to 100KB in size iirc).

Maybe what we can do is check what the file size restriction is (I'm not sure this is accessible but I'll take a look). I agree that in some ways it is not optimal, but I think this is more-so a service to instances.

Do you know off of the top of your head any services that don't have as restrictive upload requirements?

alsiniz commented 1 year ago

That's completely fair, but I don't have a one-size-fits-all recommendation for a media host. Sorry.

I do however think it's worth taking this up with Lemmy devs to allow instance admins to set internal or a specific external host, with that setting being reflected via the API for third party apps to utilise.

I think admins would have a much better idea of whether their instances' content should be hosted locally or externally. I'd also like to think they'd understand which external hosts' policies align with the content in their communities best.

I don't think all of Lemmy should be hosting content on a single or few hosts as that sort of defeats the purpose of decentralisation. It would suck to have all image posts fail to load because imgur went down regardless of what instance you're on.

A lot of web-hosting plans offered on the web these days have unlimited* storage at a fixed rate, so I don't imagine every Lemmy admin would want to use an external content host, though many definitely will.

gkasdorf commented 1 year ago

Yea, I'll monitor this issue. Not going to close this but just going to put an on-hold tag on it. I'll talk with some people and see what they think. I was talking to someone else actually today about it and we are considering options.