Returns the PUT route handler for file upload.
Requires authentication (Bearer token, not refresh cookie). Expects multipart form data with fields: file (File), type (string), and optional data (JSON string).
file
type
data
SetupFileUploadOptions (getKey, onUpload).
SetupFileUploadOptions
S3 client instance.
Async Next.js route handler for PUT requests.
Returns the PUT route handler for file upload.
Requires authentication (Bearer token, not refresh cookie). Expects multipart form data with fields:
file(File),type(string), and optionaldata(JSON string).