diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-03-19 16:07:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-03-19 16:07:53 +0100 |
commit | d94f90032c15166d00fae974ea8b4d30b5645d13 (patch) | |
tree | d0f34bbbba04203d108866a3ef965d082b497e69 /fb | |
parent | 84f8fd1c20054c89828fdc57ca201cd002c6b7ac (diff) | |
download | bin-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-x | fb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |