async def store_file_entity(self, entity: Any, content: BinaryIO) -> Any:
        """Store a file entity in persistent storage.

        Args:
            entity: FileEntity to store
            content: File content as binary stream

        Returns:
            Updated entity with storage information
        """
        if not entity.sync_id:
            logger.warning(
                "Cannot store file without sync_id", extra={"entity_id": entity.entity_id}
            )
            return entity

        blob_name = self._get_blob_name(entity.sync_id, entity.entity_id)

        # Store the file
        logger.info(
            "Storing file in persistent storage",
            extra={
                "sync_id": str(entity.sync_id),
                "entity_id": entity.entity_id,
                "blob_name": blob_name,
                "size": entity.total_size,
            },
        )

        success = await self.client.upload_file(self.container_name, blob_name, content)

        if success:
            entity.storage_blob_name = blob_name

            # Store metadata
            metadata = {
                "entity_id": entity.entity_id,
                "sync_id": str(entity.sync_id),
                "file_name": entity.name,
                "size": entity.total_size,
                "checksum": entity.checksum,
                "mime_type": getattr(entity, "mime_type", None),
                "stored_at": datetime.utcnow().isoformat(),
                "fully_processed": False,  # Will be updated after chunking
            }

            await self._store_metadata(entity.sync_id, entity.entity_id, metadata)

            logger.info(
                "File stored successfully",
                extra={"sync_id": str(entity.sync_id), "entity_id": entity.entity_id},
            )
        else:
            logger.error(
                "Failed to store file",
                extra={"sync_id": str(entity.sync_id), "entity_id": entity.entity_id},
            )

        return entity
Store a file entity in persistent storage.

        Args:
            entity: FileEntity to store
            content: File content as binary stream

        Returns:
            Updated entity with storage information
        
backend/airweave/platform/storage/storage_manager.py