Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function upload(name, data)
- print(http.post {
- url = ("https://transfer.sh/upload/%s"):format(name),
- method = "PUT",
- body = data
- }.readAll())
- end
- local filename = ...
- local f = fs.open(filename, "r")
- local d = f.readAll()
- f.close()
- upload(filename, d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement