To use this functionality, first you need to add Attachment custom field to the project layout.
To do it, follow the article below:
After adding Attachments custom field to Projects layout, choose file icon will appear on the Attachment field.
You can attachments directly on the Project Details. The only limitation is the size of the file - you can add maximum 1,5MB at once.