From e25ce198cd02b5d9d918f34554f99248a3fb8518 Mon Sep 17 00:00:00 2001 From: Said Achmiz Date: Wed, 2 Feb 2022 04:49:08 -0500 Subject: [PATCH] Add front-end implementation suggestions to README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3283fc2..99c33c5 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Post textfiles by sending a POST request to `/textfiles/textfiles.php`, with two The response to the POST request will contain the URL of the newly-created paste. You can append `/raw` to that URL to view the raw text of the paste. +Setting up a mechanism for posting pastes is currently left as an exercise for the reader. (There are many ways to do this: one could have a simple shell script that takes text from `stdin` and uses `curl` to issue a POST request to the script URL; one could put together something like a Cocoa Service with Apple’s Automator, to allow posting text from any application as a paste; one could even have some sort of web form—backed by another PHP script, running on the same server—to allow posting of pastes from the web. Note that if you opt for the last option, you should take care to secure the posting form somehow, lest your pastebin server be flooded by all manner of junk…) + ## Notes You can, of course, change the path from `/textfiles/` to anything else, modifying the scripts, config files, etc. in the obvious manner. -- 2.11.4.GIT