UploadStorage
final class UploadStorage (View source)
Methods
ensureTargetDirectory(string $targetDirectory)
string
buildRelativePath(string $targetRelativeDirectory, string $storedFilename)
string
generateFilename(string|null $extension = null)
string
buildPath(string $targetDirectory, string $storedFilename)
string
moveUploadedFile(UploadedFileInterface $file, string $storedPath)
void
fileSize(string $path)
int
Details
ensureTargetDirectory
string
ensureTargetDirectory(string $targetDirectory)
No description
buildRelativePath
string
buildRelativePath(string $targetRelativeDirectory, string $storedFilename)
No description
generateFilename
string
generateFilename(string|null $extension = null)
No description
buildPath
string
buildPath(string $targetDirectory, string $storedFilename)
No description
moveUploadedFile
void
moveUploadedFile(UploadedFileInterface $file, string $storedPath)
No description
fileSize
int
fileSize(string $path)
No description