I tried to upload a picture that way but I get an error message even if I did everything correctly
No you did not do everything correctly, that is why it didn't work.
only the driver gets really hot in a few seconds
That means it is trying to pass too much current. That driver is not good enough to drive your motor you need a current limiting driver.