On input and uploading of user content

> I don't understand how I'm suppesed to upload things when using gemini.
> By reading the mailing list archive, I've found the following ways:
> - Gemini input (max input of 1024B - sizeof(url))
> - Titan
> - Dioscuri
> - Inimeg
> - FTP, SFTP, Rsync, ... (Implementing these protocols in the app
> requires too much work)
>
> Is there a recommended way to do this? Or should I just look away,
> implement everything in http and offer a gemini proxy to read blog
> posts?

Consider that another solution that would be simple for your Gemini app
to handle natively would be to upload your files to a file sharing
service like Nextcloud or Lufi and then to use Gemini response code 10
to prompt your user for the URL of the file they want your app to
import.

Your Gemini server can then make the necessary connection to the file
sharing service to download the file and do whatever it wants with it
before sending a response back to your user.

Nextcloud: https://nextcloud.com/
Lufi:      https://framagit.org/fiat-tux/hat-softwares/lufi

If you want to test it out quickly, there's a public Lufi instance
running on Disroot's servers (please don't abuse it):

  https://upload.disroot.org/

Happy hacking,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

---

Previous in thread (3 of 11): 🗣️ Waweic (waweic (a) activ.ism.rocks)

Next in thread (5 of 11): 🗣️ Lorenzo Miglietta (ranfdev (a) gmail.com)

View entire thread.