Page MenuHomePhabricator

Correct two parameter strictness issues with file uploads
ClosedPublic

Authored by epriestley on Apr 10 2017, 10:49 PM.
Tags
None
Referenced Files
F19788522: D17651.id42451.diff
Wed, Feb 25, 3:56 PM
F19604034: D17651.id42451.diff
Feb 3 2026, 7:34 AM
F19541519: D17651.diff
Jan 22 2026, 4:40 AM
F19528792: D17651.id.diff
Jan 19 2026, 11:51 AM
F19515970: D17651.id42451.diff
Jan 14 2026, 5:57 PM
F19513952: D17651.id42451.diff
Jan 13 2026, 8:04 PM
F19116754: D17651.id.diff
Dec 9 2025, 7:42 PM
F19043631: D17651.id42451.diff
Nov 26 2025, 11:40 PM
Subscribers

Details

Summary

Fixes T12531. Strictness fallout from adding typechecking in D17616.

  • chunkedHash is not a real parameter, so the new typechecking was unhappy about it.
  • mime-type no longer allows null.
Test Plan
  • Ran arc upload --conduit-uri ... 12MB.zero on a 12MB file full of zeroes.
  • Before patch: badness, failure, fallback to one-shot uploads.
  • After patch: success and glory.

Diff Detail

Repository
rP Phabricator
Branch
files1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16379
Build 21786: Run Core Tests
Build 21785: arc lint + arc unit

Event Timeline

joshuaspence added inline comments.
src/applications/files/conduit/FileUploadChunkConduitAPIMethod.php
70

Is this meant to be $params['mime-type']? Otherwise it looks like $mime_type is unused.

epriestley removed a reviewer: joshuaspence.
  • Actually set 'mime-type'.
This revision was automatically updated to reflect the committed changes.

I removed him accidentally by racing arc diff against his accept. T12109 is a rough description.

That is, he got removed here, when an arc diff with Reviewers: chad in the message took effect:

Screen Shot 2017-04-10 at 5.11.01 PM.png (80×450 px, 20 KB)