Repository navigation
feat: Add support for Parse.File.setDirectory, setMetadata, setTags with stream-based file upload - #2937
Conversation
|
🚀 Thanks for opening this pull request! |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Parse.File.setDirectory, setMetadata , setTags for stream-based file uploadParse.File.setDirectory, setMetadata, setTags for stream-based file upload
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughRoute stream-based files through the binary upload path when appropriate, allowing directory, metadata, and tags to be sent as headers; update JSDoc, types, and tests to reflect Parse Server >= 9.5.0 requirements and the new save behavior. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant SDK as DefaultController/ParseFile
participant Server
Client->>SDK: save(fileStream, { directory, metadata, tags, saveBinary })
SDK->>SDK: detect stream & evaluate saveBinary / hasFileData
SDK->>Server: POST /files (binary) with headers: X-Parse-Directory, X-Parse-Metadata, X-Parse-Tags
Server-->>SDK: 201 Created (file info)
SDK-->>Client: resolve(saved File)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Parse.File.setDirectory, setMetadata, setTags for stream-based file uploadParse.File.setDirectory, setMetadata, setTags with stream-based file upload
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@types/ParseFile.d.ts`:
- Around line 203-205: Update the conflicting JSDoc comments in ParseFile.d.ts
so they match the new behavior: replace any statements that say "stream files
with metadata/tags throw" with a version-note that stream-based uploads support
metadata/tags when Parse Server >= 9.5.0 (same phrasing as the new note near
"Sets metadata..."). Specifically edit the earlier JSDoc blocks (the comment
near line ~67 and the block around the current 154-156) and also the other
occurrences noted (around 211, 218-220, 226, 235) to remove the "throws"
language and add the version requirement/compatibility note and/or remove
contradictory warnings so all comments consistently state that metadata/tags on
stream-based files require Parse Server >= 9.5.0.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: f16a5e4a-437e-47fc-9acf-7067bf18ce19
📒 Files selected for processing (1)
types/ParseFile.d.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #2937 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 64 64
Lines 6327 6331 +4
Branches 1516 1518 +2
=========================================
+ Hits 6327 6331 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Parse.File.setDirectory, setMetadata, setTags with stream-based file uploadParse.File.setDirectory, setMetadata, setTags with stream-based file upload
# [8.4.0-alpha.1](8.3.0...8.4.0-alpha.1) (2026-03-04) ### Features * Add support for `Parse.File.setDirectory`, `setMetadata`, `setTags` with stream-based file upload ([#2937](#2937)) ([18ded83](18ded83))
|
🎉 This change has been released in version 8.4.0-alpha.1 |
# [8.4.0](8.3.0...8.4.0) (2026-03-04) ### Features * Add support for `Parse.File.setDirectory`, `setMetadata`, `setTags` with stream-based file upload ([#2937](#2937)) ([18ded83](18ded83))
|
🎉 This change has been released in version 8.4.0 |
Pull Request
Issue
Add support for setting
Parse.File.setDirectory,setMetadata,setTagsfor stream-based file uploadTasks
Summary by CodeRabbit
Bug Fixes
Documentation
Tests