public static void ClipboardUpload() { if (Clipboard.ContainsImage()) { Image img = Clipboard.GetImage(); UploadImage(img); } else if (Clipboard.ContainsFileDropList()) { string[] files = Clipboard.GetFileDropList().Cast <string>().ToArray(); UploadFile(files); } else if (Clipboard.ContainsText()) { string text = Clipboard.GetText(); if (Program.Settings.ClipboardUploadAutoDetectURL && ZAppHelper.IsValidURL(text)) { ShortenURL(text.Trim()); } else { UploadText(text); } } }