Support direct multipart/base64 image uploads - #61
Merged
crisng95 merged 1 commit intoSep 24, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
External callers should not have to share the FlowKit service filesystem namespace. This PR makes direct bytes the recommended upload path while keeping file_path as a server-local convenience mode.\n\nChanges:\n- add POST /api/flow/upload-image-file (multipart/form-data)\n- keep JSON image_base64 upload as a first-class external-caller path\n- document file_path as server-local only\n- return 403 for unreadable local files and descriptive 404 for paths invisible to the service namespace (including PrivateTmp-style cases)\n- preserve session-project auto creation when project_id is omitted\n- add OpenAPI descriptions and regression coverage\n- add python-multipart dependency\n\nValidation: 380/380 upstream unit tests passed locally.