title: Google Cloud Platform Storage JSON API upload breaks audio files..?! How to fix?
body: <p>I did manage to upload files to Google storage with GCP resumable upload (json api):
  <a href="https://cloud.google.com/storage/docs/json_api/v1/how-tos/resumable-upload" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/json_api/v1/how-tos/resumable-upload</a></p>
  
  <p>Using jQuery and Plupload <a href="http://www.plupload.com" rel="nofollow noreferrer">http://www.plupload.com</a></p>
  
  <p>But now it seems that audio files loses their codecs in upload and those won't play or ffmpeg can't probe those. More testing showed that actually .flac files are ok to ffmpeg, but for example .m4a files are not.</p>
  
  <p>I need to get most of the audio files uploaded to google storage and be able to probe those with ffmpeg. And must be able upload big files over 100Mb. That's why I believe JSON API is best or only possible way.</p>
  
  <p>I think I have metadata also added correctly, but now I'm confused how to continue..
  Any ideas what could be the problem here?</p>
  
  <p><strong>EDIT (more info):</strong> </p>
  
  <p><strong>I had working software:</strong></p>
  
  <ul>
  <li>Using regular POST > /temp > Google Cloud Storage Client (php).</li>
  <li>GCP Storage Client uploaded files with perfection.</li>
  <li>Even that I named uploaded files with random unique name like "woeiwehf.tmp", those did work and ffmpeg could probe them fine.</li>
  </ul>
  
  <p><strong>THEN something happened, I guess uploading like this was limited (or something):</strong></p>
  
  <ul>
  <li><p>What meant that my solution couldn't upload anymore big files, over 32Mb.</p></li>
  <li><p>Well that wasn't best solution anyway, so that's okey, that this changed.</p></li>
  </ul>
  
  <p><strong>NOW:</strong></p>
  
  <ul>
  <li>I have changed software so it uses GCP JSON API upload resumable, and this mainly works</li>
  <li>But I had to change files to look like "woeiwehf.flac" or what ever type is. ".tmp" didn't work anymore.</li>
  <li>For example .flac files work nicely, but .m4a will not.</li>
  <li>I've tested uploading many different ways, and it seems that JSON API upload loses at least codecs and bit rate.</li>
  </ul>
  
  <p>--</p>
  
  <p>I would be very grateful if I could get help how to resolve this.
  I guess one solution may could be to fork ffmpeg client and manually set audio codec, but I'm saving that for the last solution.</p>