summaryrefslogtreecommitdiffstats
path: root/system/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-03-19 15:32:16 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-03-19 16:17:57 +0100
commit6a46aca31f3cf0615c226d1486693ed4a6350a39 (patch)
tree650ff42e7d663c69de2cdaf86f77016d8f0a9d69 /system/application/views/file
parent3715f4a81a22232ce268efced31e1893eff7d043 (diff)
restructure; add paste support; shorter URLs
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/views/file')
-rw-r--r--system/application/views/file/show_url.php2
-rw-r--r--system/application/views/file/upload_form.php20
2 files changed, 18 insertions, 4 deletions
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 @@
<div style="text-align:center">
- You can get your file here:<br />
+ You can get your file/paste here:<br />
<a href="<?php echo $url; ?>"><?php echo $url; ?></a><br />
</div>
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 @@
<div style="text-align:center">
<?php echo form_open_multipart('file/do_upload'); ?>
- File: <input type="file" name="userfile" size="30" />
+ File: <input type="file" name="file" size="30" />
<input type="submit" value="Upload" name="process" />
</form>
+ <br />
+ <p>OR</p>
+ <br />
+ <?php echo form_open_multipart('file/do_paste'); ?>
+ <textarea name="content" cols="80" rows="20"></textarea><br />
+ <input type="submit" value="Paste" name="process" />
+ </form>
</div>
<br /><br />
-Uploads are deleted after 5 days.<br />
+Uploads/pastes are deleted after 5 days.<br />
+<br />
+For shell uploading/pasting use:<br />
+<pre>
+curl -F "content=<-" <?php echo base_url(); ?> < file (not binary safe)
+cat file | curl -F "content=<-" <?php echo base_url(); ?> (not binary safe)
+curl -F "file=@/home/user/foo" <?php echo base_url(); ?> (binary safe)
+</pre>
<br />
-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:<br />
+If you want to you can use my script (needs python and curl) to upload files, paste text or delete your uploads:<br />
<a href="http://git.server-speed.net/bin/plain/fb">http://git.server-speed.net/bin/plain/fb</a><br />
<br />
If you experience any problems feel free to <a href="http://bluewind.at/?id=1">contact me</a>.<br />