title: PHP download image from url without direct image name
body: <pre><code>{{my_salesforce_url}}/sfc/servlet.shepherd/document/download/0694U000007w5QyQAI?operationContext=S1
  </code></pre>
  <p>this url content a file with name ine_file.jpg, when run in browser work and download the file direct, but when i try download with php and save the file in local no work</p>
  <p>i try with:</p>
  <pre><code>file_put_contents(public_path() . &quot;/&quot; . $fileName, fopen($file[&quot;url&quot;], 'r'));
  </code></pre>
  <p>and</p>
  <pre><code>    file_put_contents(public_path() . &quot;/&quot; . $fileName, file_get_contents($url));
  </code></pre>
  <p>any idea ?
  How to get a file from url and save the file using php o curl?</p>