From 6a46aca31f3cf0615c226d1486693ed4a6350a39 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 19 Mar 2010 15:32:16 +0100 Subject: restructure; add paste support; shorter URLs Signed-off-by: Florian Pritz --- system/application/views/file/show_url.php | 2 +- system/application/views/file/upload_form.php | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'system/application/views') diff --git a/system/application/views/file/show_url.php b/system/application/views/file/show_url.php index 62d34c661..73073ec04 100644 --- a/system/application/views/file/show_url.php +++ b/system/application/views/file/show_url.php @@ -1,4 +1,4 @@
- You can get your file here:
+ You can get your file/paste here:

diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php index b39088c4e..081277bde 100644 --- a/system/application/views/file/upload_form.php +++ b/system/application/views/file/upload_form.php @@ -1,13 +1,27 @@
- File: + File: +
+

OR

+
+ +
+ +


-Uploads are deleted after 5 days.
+Uploads/pastes are deleted after 5 days.
+
+For shell uploading/pasting use:
+
+curl -F "content=<-"  < file      (not binary safe)
+cat file | curl -F "content=<-"   (not binary safe)
+curl -F "file=@/home/user/foo"    (binary safe)
+

-If you want to you can use my script (needs python and curl) to upload files, paste text (with syntax highlighting of course) or delete your uploads:
+If you want to you can use my script (needs python and curl) to upload files, paste text or delete your uploads:
http://git.server-speed.net/bin/plain/fb

If you experience any problems feel free to contact me.
-- cgit v1.2.3-24-g4f1b