Quietess / sharex-upload-script

I wrote this after discovering a bit more of how image uploading works with ShareX from Aerouk's script.
GNU General Public License v3.0
2 stars 4 forks source link

disable random file name? #2

Open seagullmania opened 6 years ago

seagullmania commented 6 years ago

is there a way to disable the random file name in this?

Quietess commented 6 years ago
        rename(getcwd() . "/" . basename($_FILES['form']['name']), getcwd() . "/i/" . $md5 . "." . end(explode(".", $_FILES["form"]["name"])));

You'd have to change this bit of code to whatever you want.