Page MenuHomePhorge

D25258.1734664415.diff
No OneTemporary

D25258.1734664415.diff

diff --git a/src/applications/files/conduit/FileUploadConduitAPIMethod.php b/src/applications/files/conduit/FileUploadConduitAPIMethod.php
--- a/src/applications/files/conduit/FileUploadConduitAPIMethod.php
+++ b/src/applications/files/conduit/FileUploadConduitAPIMethod.php
@@ -31,8 +31,10 @@
$view_policy = $request->getValue('viewPolicy');
$data = $request->getValue('data_base64');
+ if (!phutil_nonempty_string($data)) {
+ throw new Exception(pht('Field "data_base64" must be non-empty.'));
+ }
$data = $this->decodeBase64($data);
-
$params = array(
'authorPHID' => $viewer->getPHID(),
'canCDN' => $can_cdn,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 03:13 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016446
Default Alt Text
D25258.1734664415.diff (661 B)

Event Timeline