summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
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