title: corrupted image files after upload to remote ftp server with laravel
body: <p>hello guys i'm stuck here trying to figure out why uploaded files are being stored corrupted on ftp server. </p>
  
  <p>this is my input on blade</p>
  
  <pre><code>&lt;input type="file" id="newmidias" name="midias[]" /&gt;
  </code></pre>
  
  <p>this is my array of image on controller after i send using ajax:
  <a href="https://i.stack.imgur.com/0vLX1.jpg" rel="nofollow noreferrer">my_array</a></p>
  
  <p>here is how I store files to ftp:</p>
  
  <p>ftp_folder is "midias/"</p>
  
  <pre><code>$file_name = 'file.jpg'; 
  </code></pre>
  
  <p><code>Storage::disk('ftp')-&gt;put('midias/'.$file_name, $_FILES[26]["name"]);</code></p>
  
  <p>any help is appeciated. thanks!</p>