Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
DeleteFile removes an uploaded file from the specified directory. filename: The unique filename of the file to be deleted. uploadDirectory: The directory where the file is stored. Returns an error if the file cannot be deleted.
func UploadFile ¶
UploadFile handles the uploading of a file. file: The file content as an io.Reader. handlerFilename: The original filename of the uploaded file. uploadDirectory: The directory where the file should be uploaded. Returns the unique filename generated for the uploaded file, or an error if the upload fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.