From b256550f2b2640d4ff507d5c759251bac538bbd9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 5 Apr 2012 15:11:19 +0200 Subject: improve start page for cli clients Signed-off-by: Florian Pritz --- application/views/file_plaintext/client.php | 9 +++++---- application/views/file_plaintext/upload_form.php | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/application/views/file_plaintext/client.php b/application/views/file_plaintext/client.php index 310d82f3f..86e6e1391 100644 --- a/application/views/file_plaintext/client.php +++ b/application/views/file_plaintext/client.php @@ -1,12 +1,13 @@ -Shell: - curl -n -F "file=@/home/user/foo" (binary safe) - cat file | curl -n -F "file=@-;filename=stdin" (binary safe) +Shell (binary safe): + curl -n -F "file=@/home/user/foo" + cat file | curl -n -F "file=@-;filename=stdin" Client: Development (git): http://git.server-speed.net/users/flo/fb Latest release: GPG sigs, older versions: -If you want to use authentication (needed for deleting) add the following to your ~/.netrc: +If you want to use authentication (needed for deleting) add the following +to your ~/.netrc: machine paste.xinu.at password my_secret_password diff --git a/application/views/file_plaintext/upload_form.php b/application/views/file_plaintext/upload_form.php index 18ff958ce..9c20815df 100644 --- a/application/views/file_plaintext/upload_form.php +++ b/application/views/file_plaintext/upload_form.php @@ -1,2 +1,17 @@ Uploads/pastes are deleted after days 0): ?> unless they are smaller than . Maximum upload size is . + +How to link your uploads: + - "//" automatically highlight the uploads + - "/" set the detected MIME type and let the browser do the rest + - "//plain" force the MIME type to be text/plain + - "//" override auto detection and use the supplied + file extension or language name for highlighting + - "//qr" display a qr code containing a link to // + - "//rmd" convert markdown to HTML + - "//ascii" convert text with ANSI (shell) escape codes to HTML + +If your upload is not detected as text, only "//qr" and "//plain" +will work as above and all others will simply return the file with the +detected MIME type. + -- cgit v1.2.3-24-g4f1b