async def _process_presigned_file(
        self, file_entity: NotionFileEntity
    ) -> Optional[NotionFileEntity]:
        """Process a file with a pre-signed URL that doesn't need authentication."""
        logger.info(f"Processing pre-signed file entity: {file_entity.name}")

        try:
            # Create stream without access token for pre-signed URLs
            file_stream = file_manager.stream_file_from_url(
                file_entity.download_url, access_token=None, headers=None
            )

            # Process entity directly with the file manager
            processed_entity = await file_manager.handle_file_entity(
                stream=file_stream, entity=file_entity
            )

            # Skip if file was too large
            if hasattr(processed_entity, "should_skip") and processed_entity.should_skip:
                error_msg = "Unknown reason"
                if processed_entity.metadata:
                    error_msg = processed_entity.metadata.get("error", "Unknown reason")
                logger.warning(f"Skipping file {processed_entity.name}: {error_msg}")

            return processed_entity
        except Exception as e:
            logger.error(f"Error processing pre-signed file {file_entity.name}: {e}")
            return None
Process a file with a pre-signed URL that doesn't need authentication.
backend/airweave/platform/sources/notion.py