summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-03-19 16:07:53 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-03-19 16:07:53 +0100
commitd94f90032c15166d00fae974ea8b4d30b5645d13 (patch)
treed0f34bbbba04203d108866a3ef965d082b497e69 /fb
parent84f8fd1c20054c89828fdc57ca201cd002c6b7ac (diff)
downloadbin-d94f90032c15166d00fae974ea8b4d30b5645d13.tar.gz
bin-d94f90032c15166d00fae974ea8b4d30b5645d13.tar.xz
fb: fix post input name
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-rwxr-xr-xfb4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb b/fb
index 91f0b49..8d24662 100755
--- a/fb
+++ b/fb
@@ -10,7 +10,7 @@
#----------------------------------------------------
'''[cat |] %prog [options] [file1 file2 ...]'''
-__version__ = '0.5.0'
+__version__ = '0.5.1'
__desc__ = '''
Upload/nopaste file/stdin to paste.xinu.at and copy URL to clipboard.
'''
@@ -43,7 +43,7 @@ def do_upload(file, extension=None):
curl_args.append('-F')
curl_args.append('extension=%s' % extension)
- url = Popen(merge([['curl', '-#', '-L', '-F', 'userfile=@%s' % file,
+ url = Popen(merge([['curl', '-#', '-L', '-F', 'file=@%s' % file,
], curl_args, ['http://paste.xinu.at/file/do_upload']]),
stdout=PIPE).communicate()[0]
print url