From d94f90032c15166d00fae974ea8b4d30b5645d13 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 19 Mar 2010 16:07:53 +0100 Subject: fb: fix post input name Signed-off-by: Florian Pritz --- fb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fb') 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 -- cgit v1.2.3-24-g4f1b