-
-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store() Method: Extracts the file’s original name and generates a unique identifier using a shortened md5 hash based on the filename. Constructs a unique filename in the format of original-name-uniquehash.extension. Stores the file with the generated filename and returns the file URL. destroy() Method: Accepts a filename as a payload in the request body. Builds the storage path for the specified filename and attempts to delete it. Returns a 204 No Content response on successful deletion or a 400 response if no filename is provided.
- Loading branch information
1 parent
07a81b7
commit 709aaea
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters