Hi requinix: That's what I thought also, but I've tried:
$filename = ('./Collection_Posts/'.$file, base64_decode($uri));
Also $filename = file_put_contents('./Collection_Posts/'.$file, base64_decode($uri)); Also $filename = ./Collection_Posts/$file; Trying to echo the filename, I'm not getting anything.
I am trying to get the actual filename so that I can attach it to an email.
I tried echo $file; but its not giving me anything. Just a blank page. Here's the code that I' working with:
$file = date('M-d-Y H:i A'). '.png';
$uri = substr($data,strpos($data,",")+1);
file_put_contents('./Collection_Posts/'.$file, base64_decode($uri));
echo $file;
exit;
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.