Below is the print output from $_POST['image']
stdClass Object
(
[0] => Array
(
['filename'] => cn-100x100.png
['contents'] =>
)
[1] => Array
(
['filename'] =>
['contents'] =>
)
)
when I do,
echo '<pre>';
print_r((object)$_POST['image'][0]['filename']);
exit;
it gives me an error
Notice: Undefined index: filename
Update
I tried to do var_dump( (array)$_POST['image']),
array(2) { ["'filename'"]=> string(14) "cn-100x100.png" ["'contents'"]=> string(10218) "base64..."}
If I removed the base64 data from the array column ['contents'], now I can access the first array.
contentsIf I removed thebase64data from the array column['contents'], now I can access the first array. Any ideas, help?