Merge pull request #1031 from Scrxtchy/pomfcat-upl

Pomf.cat Uploader Support
This commit is contained in:
Jaex 2015-10-03 11:28:04 +03:00
commit a9d92cd41c
4 changed files with 42 additions and 0 deletions

View file

@ -126,6 +126,8 @@ public enum FileDestination
VideoBin,
[Description("MaxFile")]
MaxFile,
[Description("Pomf.cat")]
PomfCat,
[Description("Dropfile")]
Dropfile,
[Description("Up1")]

View file

@ -0,0 +1,36 @@
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2015 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
*/
#endregion License Information (GPL v3)
namespace ShareX.UploadersLib.FileUploaders
{
public sealed class PomfCat : Pomf
{
public PomfCat()
{
UploadURL = "https://pomf.cat/upload.php";
ResultURL = "https://a.pomf.cat";
}
}
}

View file

@ -138,6 +138,7 @@
<Compile Include="FileUploaders\OneDrive.cs" />
<Compile Include="FileUploaders\OwnCloud.cs" />
<Compile Include="FileUploaders\Pomf.cs" />
<Compile Include="FileUploaders\PomfCat.cs" />
<Compile Include="FileUploaders\SFTP.cs" />
<Compile Include="FileUploaders\Minus.cs" />
<Compile Include="FileUploaders\SharedFolderUploader.cs" />

View file

@ -1072,6 +1072,9 @@ public UploadResult UploadFile(Stream stream, string fileName)
case FileDestination.MaxFile:
fileUploader = new MaxFile();
break;
case FileDestination.PomfCat:
fileUploader = new PomfCat();
break;
case FileDestination.Dropfile:
fileUploader = new Dropfile();
break;