This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static string CreateDownloadLink(string File) // Important to note AnonFile has a 20gb file size limit (which is overkill for most applications) | |
{ | |
string ReturnValue = string.Empty; | |
try | |
{ | |
using (WebClient Client = new WebClient()) | |
{ | |
byte[] Response = Client.UploadFile("https://api.anonfiles.com/upload", File);// Thanks noobencoder for pointing out that Anonfile changed domains since when I originally wrote this 3 years ago. It's fixed now. | |
string ResponseBody = Encoding.ASCII.GetString(Response); | |
if (ResponseBody.Contains("\"error\": {")) |