mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-20 20:51:55 +12:00
22 lines
No EOL
652 B
C#
22 lines
No EOL
652 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace ShareX.UploadersLib.FileUploaders
|
|
{
|
|
public sealed class VideoBin : FileUploader
|
|
{
|
|
private const string URLUpload = "https://videobin.org/add";
|
|
|
|
public override UploadResult Upload(Stream stream, string fileName)
|
|
{
|
|
Dictionary<string, string> arguments = new Dictionary<string, string>();
|
|
arguments.Add("api", "1");
|
|
|
|
UploadResult result = UploadData(stream, URLUpload, fileName, "videoFile", arguments);
|
|
|
|
result.URL = result.Response;
|
|
|
|
return result;
|
|
}
|
|
}
|
|
} |