Skip to content

UploadPathHelper class

namespace: Serenity.Web   assemblySerenity.Net.Services

Contains helper functions for upload paths

public static class UploadPathHelper

Public Members

name description
const MetaFileExtension Represents the file extension used for metadata files.
const SizedThumbFormat Represents the format string used to generate a thumbnail size suffix with width and height placeholders. It does not include the file extension.
const TemporaryFilePrefix Represents the prefix used to identify temporary upload files.
const ThumbBaseSuffix The thumbnail suffix used for thumbnail images. Does not include file extension.
const ThumbExtension Represents the file extension used for thumbnail images in JPEG format.
static CheckFileNameSecurity(…) Checks file name security, e.g. it is a relative file (not rooted) that does not contain ".." etc.
static FindAvailableName(…) Finds an available name for a file.
static GetThumbnailName(…) Gets thumb file name.
static IsTemporaryFile(…) Determines whether the specified file name represents a temporary upload file.
static TryParseThumbSuffix(…) Tries to parse a thumbnail filename suffix, e.g. it ends with "_t.jpg", or "_tNxN.jpg" where N is a number

See Also