Skip to content

Add project logo update API route#3439

Merged
josephsnyder merged 1 commit intoKitware:masterfrom
williamjallen:update-project-logo
Feb 26, 2026
Merged

Add project logo update API route#3439
josephsnyder merged 1 commit intoKitware:masterfrom
williamjallen:update-project-logo

Conversation

@williamjallen
Copy link
Collaborator

Our infrastructure doesn't support the multi-part requests necessary to handle uploaded files via GraphQL. This commit adds a special /projects/<id>/logo POST route which can be used to set the logo for a project.

@williamjallen
Copy link
Collaborator Author

Closing in favor of including this in a larger change.


ProjectService::setLogo($project, $request->file('logo'));

return response()->redirectTo(url("/projects/{$project->id}/settings"));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page doesn't exist yet, but will once this route is actually used for anything.

Our infrastructure doesn't support the multi-part requests necessary to handle uploaded files via GraphQL.  This commit adds a special `/projects/<id>/logo` POST route which can be used to set the logo for a project.
@williamjallen
Copy link
Collaborator Author

Reopening this to help reduce the size of my upcoming project settings page rewrite.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I haven't tested the actual upload but it makes sense looking forward.

@josephsnyder josephsnyder added this pull request to the merge queue Feb 26, 2026
Merged via the queue into Kitware:master with commit b180316 Feb 26, 2026
13 of 14 checks passed
@williamjallen williamjallen deleted the update-project-logo branch February 26, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants