@_requires_aws
def upload_file(bucket_name, dest_path, src_path, public=False, content_type='application/octet-stream', download_filename=None):
    bucket = _buckets[bucket_name]
    key = Key(bucket)
    key.key = dest_path

    if public:
        policy = 'public-read'
    else:
        policy = 'private'

    headers = {
        'Content-Type': content_type
    }

    if download_filename is not None:
        headers['Content-Disposition'] = download_filename.replace(' ','_') % 'attachment;filename="%s"'

    key.set_contents_from_filename(src_path, policy=policy, headers=headers)
dataset/ETHPy150Open pebble/cloudpebble/utils/s3.py/upload_file/swapped operands of `%`