Create an UploadedFile.
The file path.
The original name of the uploaded file.
OptionalmimeType: string
The MIME type of the file.
Edit file content.
The callback function to modify the file content.
The current File instance.
Check if the file exists.
True if the file exists, otherwise false.
Get the absolute file path.
The root directory to resolve from.
The absolute file path.
Get the basename of the file.
The file extension to exclude from the basename.
The basename of the file.
Get the MIME type of the uploaded file.
The MIME type of the file.
Get the original file extension of the uploaded file.
The original file extension.
Get the original name of the uploaded file.
The original name of the file.
Get file content.
The content of the file as a string.
Get the directory name of the file.
The directory name.
Get the encoded absolute file path.
The root directory to resolve from.
The encoded absolute file path.
Get the encoded file path.
The encoded file path.
Get the file extension.
The file extension.
Get the filename of the file.
The filename of the file.
Get the hashed content of the file.
The hashing algorithm to use.
The hashed content of the file as a hex string.
Get the MIME type of the file.
The MIME type of the file.
Get the MIME type of the file.
A fallback MIME type if detection fails.
The MIME type of the file.
Get the name of the file without extension.
The name of the file.
Get the file path.
The file path.
Get file size.
Whether to return the file size as a formatted string.
The file size as a string or number.
Guess the client file extension based on the MIME type.
The guessed file extension.
Check if the file path is absolute.
True if the file path is absolute, otherwise false.
Check if the file is compressed.
True if the file is compressed, otherwise false.
Check if the file is a directory.
True if the file is a directory, otherwise false.
Check if the file is executable.
True if the file is executable, otherwise false.
Check if the file is a regular file.
True if the file is a regular file, otherwise false.
Check if the file is a symbolic link.
True if the file is a symbolic link, otherwise false.
Check if the file path starts with a provided prefix.
True if the file path starts with the provided prefix, otherwise false.
Check if the file is readable.
True if the file is readable, otherwise false.
Check if the uploaded file is valid.
True if the file exists, otherwise false.
Check if the file is writable.
True if the file is writable, otherwise false.
Move the uploaded file to a new directory.
The target directory.
Optionalname: string
The new name for the file.
A new UploadedFile at the destination (client name/MIME preserved).
Remove file.
Whether to forcefully remove the file.
The current File instance.
StaticcreateCreate a File.
The file path.
Whether to check if the file path is valid.
A new File instance.
StaticcreateCreate an UploadedFile.
The file path.
The original name of the uploaded file.
OptionalmimeType: string
The MIME type of the file.
A new UploadedFile instance.
Class representing an UploadedFile.
Author
Mr. Stone evensstone@gmail.com