mirror of
https://github.com/facebookresearch/sam2.git
synced 2025-09-18 04:32:48 +08:00
[sam2][demo][1/x] Fix file upload
Summary: The Strawberry GraphQL library recently disabled multipart requests by default. This resulted in a video upload request returning "Unsupported content type" instead of uploading the video, processing it, and returning the video path. This change enables multipart request support on the endpoint view. Test Plan: Tested locally and upload succeeds
This commit is contained in:
parent
29267c8e39
commit
7f61dd606c
@ -128,6 +128,10 @@ app.add_url_rule(
|
||||
# https://strawberry.rocks/docs/operations/deployment
|
||||
# https://strawberry.rocks/docs/integrations/flask
|
||||
allow_queries_via_get=False,
|
||||
# Strawberry recently changed multipart request handling, which now
|
||||
# requires enabling support explicitly for views.
|
||||
# https://github.com/strawberry-graphql/strawberry/issues/3655
|
||||
multipart_uploads_enabled=True,
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user