Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$base64 = base64_encode(file_get_contents('/path/to/file.pdf')); $DEAL_ID = 1; CRest::ca..
Decoded Output download
<? $base64 = base64_encode(file_get_contents('/path/to/file.pdf'));
$DEAL_ID = 1;
CRest::call('crm.deal.update',
[
'id' => $DEAL_ID,
'fields' => [
// Uploading a single file
"UF_CRM_1234567890" => [
'fileData' => ["File-Name.pdf", $base64]
],
// Uploading multiple files (multiple property)
"UF_CRM_1234567890" => [
[
'fileData' => ["File-Name-1.pdf", $base64]
],
[
'fileData' => ["File-Name-2.pdf", $base64]
]
],
],
'params' => [
"REGISTER_SONET_EVENT" => "Y"
]
]
); ?>
Did this file decode correctly?
Original Code
$base64 = base64_encode(file_get_contents('/path/to/file.pdf'));
$DEAL_ID = 1;
CRest::call('crm.deal.update',
[
'id' => $DEAL_ID,
'fields' => [
// Uploading a single file
"UF_CRM_1234567890" => [
'fileData' => ["File-Name.pdf", $base64]
],
// Uploading multiple files (multiple property)
"UF_CRM_1234567890" => [
[
'fileData' => ["File-Name-1.pdf", $base64]
],
[
'fileData' => ["File-Name-2.pdf", $base64]
]
],
],
'params' => [
"REGISTER_SONET_EVENT" => "Y"
]
]
);
Function Calls
None |
Stats
MD5 | 36649021f7aae92d9cccdb66af9bb807 |
Eval Count | 0 |
Decode Time | 40 ms |