title: how to upload file in amazon cloud drive?
body: <p>i want to upload file to amazon cloud drive . can anyone help me to format this command using curl</p>
  
  <p>api description: </p>
  
  <p>Upload File 
  Uploads the file content along with its metadata information.</p>
  
  <pre><code>POST : {{contentUrl}}/nodes?suppress={suppress}
  
  suppress : (Optional)
  
  deduplication: disables checking for duplicates when uploading
  </code></pre>
  
  <p>Body Parameters:</p>
  
  <pre><code>Multi-form part
  
  --------- metadata ------------
  
  name (required) : file name. Max to 256 Characters. 
  kind (required) : "FILE" 
  labels (optional) : Extra information which is indexed. For example the value can be "PHOTO" 
  properties (optional) : List of properties to be added for the file. 
  parents(optional) : List of parent Ids. If no parent folders are provided, the file will be placed in the default root folder. 
  ---------content ------------
  
  File Bytes
  </code></pre>
  
  <p><strong>Sample Request:</strong></p>
  
  <pre><code>POST /cdproxy/nodes?localId=testPhoto
  HTTP/1.1
  Host: content-na.drive.amazonaws.com
  Authorization: Bearer
  Atza|IQEBLjAsAhReYeezFcFdYzqrFOJGv3EG
  
  ----WebKitFormBoundaryE19zNvXGzXaLvS5C
  Content-Disposition: form-data; name="metadata"
  
  {"name":"fooo.jpg","kind":"FILE"}
  ----WebKitFormBoundaryE19zNvXGzXaLvS5C
  Content-Disposition: form-data; name="content";
  filename="db5df4870e4e4b6cbf42727fd434701a.jpg"
  Content-Type: image/jpeg
  
  ----WebKitFormBoundaryE19zNvXGzXaLvS5C
  </code></pre>
  
  <p><strong>cURL Request:</strong></p>
  
  <pre><code>curl -v -X POST --form
  'metadata={"name":"testVideo1","kind":"FILE"}' --form
  'content=@sample_iTunes.mp4'
  'https://content-na.drive.amazonaws.com/cdproxy/nodes?localId=testVideo1&amp;suppress=deduplication'
  --header "Authorization: Bearer
  Atza|IQEBLjAsAhQ5zx7pKp9PCgCy6T1JkQjHHOEzpwIUQM"
  https://developer.amazon.com/public/apis/experience/cloud-drive/content/nodes
  </code></pre>