mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 12:14:45 +13:00
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:
parent
c736a5eae1
commit
89242097aa
2 changed files with 1 additions and 2 deletions
|
@ -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),
|
||||
|
|
1
UploadersLib/GUI/UploadersConfigForm.Designer.cs
generated
1
UploadersLib/GUI/UploadersConfigForm.Designer.cs
generated
|
@ -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/",
|
||||
|
|
Loading…
Reference in a new issue