Cannot upload photos to a new product, just keep getting server error

I have the same problem but I couldn’t solve it. I didn’t follow the steps I found to solve the problem.