-
-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Description
Context
Image uploads are currently failing in the development environment.
const { mutate: getUploadUrl } = api.event.getUploadUrl.useMutation();
This throws the following error:
Property 'event' does not exist on type 'CreateTRPCReactBase
The event TRPC route was removed in #1068 as the event functionality was no longer needed. However, the getUploadUrl functionality is still required for image uploads.
Expected Behavior
The getUploadUrl procedure should be restored and image uploads should work as expected.
It is likely this functionality should be shared with the other parts of the site which require image uploads. Id the settings page.
Current Behavior
Image uploads are not functioning due to the missing getUploadUrl method.
Screenshots
Steps to reproduce
Open the editor and attempt to upload an image.
