Skip to content

Bugfix : Image uploads not working #1131

@John-Paul-Larkin

Description

@John-Paul-Larkin

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

Screenshot 2024-10-15 at 15 10 44

Steps to reproduce

Open the editor and attempt to upload an image.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions