def guess_mimetype(filename):
    fn = os.path.basename(filename)
    return mimetypes.guess_type(fn)[0] or 'application/octet-stream'
Builds the SpecialCollectionRequest
dataset/ETHPy150Open ipfs/py-ipfs-api/ipfsApi/utils.py/guess_mimetype--crossover with--dataset/ETHPy150Open OneDrive/onedrive-sdk-python/src/python2/request/special_collection.py/SpecialCollectionRequestBuilder.request