HandleFileChange
Function: handleFileChange()
[object Object]
Defined in: app/components/Group/CreateGroupOverlay/CreateGroupOverlay.handlers.tsx:20
Processes a file input change event to update the form state and generate a local image preview.
Parameters
e
ChangeEvent<HTMLInputElement>
The change event from the file input element.
formData
[object Object]
The current state of the group creation form.
setFormData
Dispatch<SetStateAction<CreateGroupFormData>>
State setter to update the form data with the selected file.
setImagePreview
(preview) => void
State setter to store the Object URL for the image preview.
Returns
[object Object]