mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-12 15:52:30 +12:00
22 lines
652 B
C#
22 lines
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|