diff options
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 |