Delete the file at the given path.
To avoid panics, you should check if the file exists.
FileExists returns true if the file at the given path exists and is readable. Returns false if the given file is a directory.
GetFileExtension returns the last part of a file name. If the file doesn't have an extension, returns an empty string.
GetMIMEType get the mime type and size of the given file.
If the file cannot be opened, panics. You should check if the file exists, using "filesystem.FileExists()"", before calling this function.
IsDirectory returns true if the file at the given path exists, is a directory and is readable.
File represents a file received from client.
ParseMultipartFiles parse a single file field in a request.
Save writes the given file on the disk. Appends a timestamp to the given file name to avoid duplicate file names. The file is not readable anymore once saved as its FileReader has already been closed.
Creates directories if needed.
Returns the actual file name.