Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/feoblog_client/private/protobuf/feoblog.ts>File

a JavaScript client for feoblog written for Deno
Latest
class File
extends Message<File>
import { File } from "https://deno.land/x/feoblog_client@v0.7.0/private/protobuf/feoblog.ts";

Metadata about a file attachment. All fields are REQUIRED.

Properties

hash: Uint8Array

A 64-byte sha-512 hash of the contents of the file.

name: string

The name of the file. The file name may not contain path separators / or .
Note: The server will use the file extension to determine the mime type with which to serve the file.

size

The size of the file in bytes. Some servers may reject files based on their size, or the user's quota. Note: The size may not be 0.

Static Properties

readonly
fields: FieldList
readonly
runtime
readonly
typeName: string

Static Methods

equals(a: File | PlainMessage<File> | undefined, b: File | PlainMessage<File> | undefined): boolean
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): File
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): File
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): File