mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +12:00
Added early copy URL support for Amazon S3
This commit is contained in:
parent
e196183099
commit
4fcb1dd358
|
@ -133,6 +133,9 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
string uploadPath = GetUploadPath(fileName);
|
string uploadPath = GetUploadPath(fileName);
|
||||||
|
string resultURL = GenerateURL(uploadPath);
|
||||||
|
|
||||||
|
OnEarlyURLCopyRequested(resultURL);
|
||||||
|
|
||||||
NameValueCollection headers = new NameValueCollection
|
NameValueCollection headers = new NameValueCollection
|
||||||
{
|
{
|
||||||
|
@ -198,7 +201,7 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
return new UploadResult
|
return new UploadResult
|
||||||
{
|
{
|
||||||
IsSuccess = true,
|
IsSuccess = true,
|
||||||
URL = GenerateURL(uploadPath)
|
URL = resultURL
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -455,7 +455,7 @@ public class TaskSettingsAdvanced
|
||||||
Editor("System.Windows.Forms.Design.StringCollectionEditor,System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
|
Editor("System.Windows.Forms.Design.StringCollectionEditor,System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
|
||||||
public List<string> ImageExtensions { get; set; }
|
public List<string> ImageExtensions { get; set; }
|
||||||
|
|
||||||
[Category("Upload"), DefaultValue(false), Description("Copy URL before start upload. Only works for FTP, FTPS, SFTP, Dropbox, and Google Cloud Storage.")]
|
[Category("Upload"), DefaultValue(false), Description("Copy URL before start upload. Only works for FTP, FTPS, SFTP, Amazon S3 and Google Cloud Storage.")]
|
||||||
public bool EarlyCopyURL { get; set; }
|
public bool EarlyCopyURL { get; set; }
|
||||||
|
|
||||||
[Category("Upload"), Description("Files with these file extensions will be uploaded using text uploader."),
|
[Category("Upload"), Description("Files with these file extensions will be uploaded using text uploader."),
|
||||||
|
|
Loading…
Reference in a new issue