title: Upload file using POST/PUT Object of Google Cloud Storage HTML Form
body: <p>I'm developing a VERY simple Web-App with Google-App-Engine Plugin for Eclipse.
  I've just written this snippet of code in HTML of my "home.html".</p>
  
  <p>Here home.html is:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="http://storage.googleapis.com/myBucketName" method="post" name="putFile" id="putFile"
              enctype="multipart/form-data"&gt;
              &lt;input type="hidden" name="key" value="I don't know what is going here because i cannot guess which file i will upload" /&gt;
              &lt;input type="hidden" name="success_action_status" value="201" /&gt;
              &lt;input type="file" name="file" id="file"&gt;
              &lt;input type="submit" value="Upload"&gt;
          &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is a very simple Form without any kind of Authorization or whatever..
  For Info, you could see this: <a href="https://developers.google.com/storage/docs/reference-methods#postobject" rel="nofollow noreferrer">https://developers.google.com/storage/docs/reference-methods#postobject</a> (that i've already memorized).</p>
  
  <p>I have had different Response Error from Google (in XML Format) like:</p>
  
  <p>1)</p>
  
  <pre><code>&lt;Error&gt;
  &lt;Code&gt;InvalidArgument&lt;/Code&gt;
  &lt;Message&gt;Invalid argument.&lt;/Message&gt;
  &lt;Details&gt;Missing file part&lt;/Details&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>&lt;Error&gt;
  &lt;Code&gt;InvalidArgument&lt;/Code&gt;
  &lt;Message&gt;Invalid argument.&lt;/Message&gt;
  &lt;Details&gt;Cannot create buckets using a POST.&lt;/Details&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>3)</p>
  
  <pre><code>&lt;Error&gt;
  &lt;Code&gt;InvalidArgument&lt;/Code&gt;
  &lt;Message&gt;Invalid argument.&lt;/Message&gt;
  &lt;Details&gt;
  Invalid query parameter(s): [file, success_action_status, key]
  &lt;/Details&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>Can anyone help me to fill in this form, please?</p>
  
  <p>To be more specific:
  It works with this form: </p>
  
  <pre><code>&lt;form action="http://storage.googleapis.com/bucketName" method="post" name="putFile" id="putFile"
              enctype="multipart/form-data"&gt;
              &lt;input type="hidden" name="bucket" value="bucketName"&gt;
              &lt;input type="hidden" name="key" value="fileUploadingName" /&gt;
              &lt;input type="hidden" name="success_action_status" value="201" /&gt;
              &lt;input type="file" name="file"&gt;
              &lt;input type="submit" value="Upload"&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>The fileUploadingName is for example: sample.txt</p>
  
  <p>but the problem persists because i need to fiil the correct "key" that is the name of the file that i'm going to Upload. How can i fix it?</p>