title: file_put_contents not working
body: <p>I try to upload something to my ubuntu server by file_put_contents (a converted base64-string as .jpg) with the following code :</p>
  
  <pre><code>file_put_contents($filename, base64_decode(preg_replace('#^data:image/\w+;base64,#i', '', $data)));
  </code></pre>
  
  <p>And yes, all parameters are right, I double checked them. And I'm wondering why it is not working: </p>
  
  <p>By the way: I try to upload it to a folder, one level higher then the folder, that is reachable by the url (but even when putting it directly in internet folder, it doesn't work either).</p>
  
  <p>I thought about bad permissions, but even when changing permissions to 777 (which I know is very unsafe), it doesn't work. </p>
  
  <p>I also don't get any errors in console.</p>
  
  <p>Does anybody have an idea why this is not working?</p>
  
  <p>Thanks.</p>