WordPress media upload “HTTP error”

I figured out how to fix my problem.

In my nginx config file (/etc/nginx/nginx.conf) I added client_max_body_size 100m; at the end of the #Basic Settings in the http {} section.

I hope this answer will help some of you and please tell me if there is any better solution to this problem.