fileFromPath

fun fileFromPath(path: String, expiresAfter: Long? = defaultExpiresAfterSeconds)

Loads a file from the given path and adds it to the upload list.

Parameters

path

The path to the file.

Throws

if the file does not exist.