@newspapper/core
    Preparing search index...

    Function localUploadFile

    • The on-disk file a render-page request URL refers to, or null.

      parseUploadRef is the same validator the API route uses, so a URL this accepts is exactly a URL that route would have accepted — there is no second, looser definition of "is this an upload" introduced here.

      Parameters

      • db: Database
      • url: string

      Returns string | null