Skip to content

Instantly share code, notes, and snippets.

@Kyshman
Forked from r4dian/transfer.sh.ps1
Created March 16, 2024 14:26
Show Gist options
  • Save Kyshman/a1023b2268ae6806e7fc3eb5e4239c3d to your computer and use it in GitHub Desktop.
Save Kyshman/a1023b2268ae6806e7fc3eb5e4239c3d to your computer and use it in GitHub Desktop.
Upload to transfer.sh from Powershell
function transfer ($filename)
{
$file = Get-Item $filename;
invoke-webrequest -method put -infile $file.FullName https://transfer.sh
}
"Test" | Set-Content .\test.txt
transfer(".\test.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment