Returns a Response with the file body and correct headers. If the file doesn't exits it returns a 404 response with an empty body.
The key of the file to serve
The response init object, with an optional fallback body
Create a new FileUploadHandler function that will automatically upload files to the File Storage.
The handle will only upload files if they match a list of valid input
field name. The key used to store the file can be customized with a
getKey
function.
The form field names allowed to upload files.
Optional
getKey: GetKeyFunctionA function that returns the key usd to store the file in the file system.
A file upload handler function that can be used with the parseFormData.
Upload, store and serve images, videos, music, documents and other unstructured data in your Edge-first application.