On input and uploading of user content
Zach DeCook
zachdecook at librem.one
Sat Nov 21 22:31:03 GMT 2020
In-Reply-To: <f749c381ad9f4aaa9f44866ad74bd4a9143939dd.camel at gmail.com>
> Thanks for the idea, but I wanted to integrate uploading in my app.
Probably not a perfect solution, but one thing I'm going with (for a text-editing application) is having a mailto link for the user to email me. Then, the server just needs to read the email through imap.
Assuming your expected uploads are not larger than the email servers can handle, this should work fine. (You can also check the email address against the email address from the user's certificate for validation)
=> https://git.sr.ht/~earboxer/prosongsa/commit/61ad5c86 Here's a little example I coded up in PHP for editing text files, if you're curious.
-Zach
More information about the Gemini
mailing list