Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682577
D25258.1734664415.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
661 B
Referenced Files
None
Subscribers
None
D25258.1734664415.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed
Attached
Detach File
Event Timeline
Log In to Comment