@classmethod
def create_file(cls, request, study, ppm_id, document_type, filename,
    metadata=None, tags=None, content_type='application/octect-stream'):
    """
        Make a request to P2MD to create a file upload
        """
    data = {'study': study, 'type': document_type, 'filename': filename}
    if metadata:
        data['metadata'] = metadata
    if tags:
        data['tags'] = tags
    if content_type:
        data['content_type'] = content_type
    upload = cls.post(request, f'/sources/api/file/{ppm_id}', data)
    uuid = upload.get('uuid')
    return uuid, upload
