Skip to content

Save-PodeRequestFile

SYNOPSIS

Saves an uploaded file on the Request to the File System.

SYNTAX

Save-PodeRequestFile [-Key] <String> [[-Path] <String>] [<CommonParameters>]

DESCRIPTION

Saves an uploaded file on the Request to the File System.

EXAMPLES

EXAMPLE 1

Save-PodeRequestFile -Key 'avatar'

EXAMPLE 2

Save-PodeRequestFile -Key 'avatar' -Path 'F:/Images'

PARAMETERS

-Key

The name of the key within the web event's Data HashTable that stores the file's name.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

The path to save files.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: .
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES