Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a788087

Browse files
matarreseTakashi Matsuo
andauthored
Remove name attribute from the input (GoogleCloudPlatform#3569)
If name='submit' is specified for the input type='submit' the endpoint returns the following error: <Error> <Code>InvalidPolicyDocument</Code> <Message> The content of the form does not meet the conditions specified in the policy document. </Message> <Details>Policy did not reference these fields: submit</Details> </Error> Co-authored-by: Takashi Matsuo <[email protected]>
1 parent 8a5bd20 commit a788087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/cloud-client/storage_generate_signed_post_policy_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def generate_signed_post_policy_v4(bucket_name, blob_name):
4646
form += " <input name='{}' value='{}' type='hidden'/>\n".format(key, value)
4747

4848
form += " <input type='file' name='file'/><br />\n"
49-
form += " <input type='submit' value='Upload File' name='submit'/><br />\n"
49+
form += " <input type='submit' value='Upload File' /><br />\n"
5050
form += "</form>"
5151

5252
print(form)

0 commit comments

Comments
 (0)