Added support for custom Amazon S3 endpoints. ShareX is now compatible with DreamObjects - the format of the timestamp sent up has been tweaked slightly to allow the DreamObjects API to work.

This commit is contained in:
Alan Edwardes 2014-05-05 12:57:22 +01:00
parent c736a5eae1
commit 89242097aa
2 changed files with 1 additions and 2 deletions

View file

@ -63,7 +63,7 @@ private string GetPolicyDocument(string fileName)
{
var policyDocument = new
{
expiration = DateTime.UtcNow.AddDays(2).ToString("o"), // The policy is valid for 2 days
expiration = DateTime.UtcNow.AddDays(2).ToString("yyyy-MM-ddTHH:mm:ssZ"), // The policy is valid for 2 days
conditions = new List<S3PolicyCondition> {
new S3PolicyCondition("acl", "public-read"),
new S3PolicyCondition("bucket", S3Settings.Bucket),

View file

@ -1902,7 +1902,6 @@ private void InitializeComponent()
//
// cbAmazonS3Endpoint
//
this.cbAmazonS3Endpoint.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbAmazonS3Endpoint.FormattingEnabled = true;
this.cbAmazonS3Endpoint.Items.AddRange(new object[] {
"https://s3-ap-northeast-1.amazonaws.com/",