Upload Button and Dataset


I’m having a problem with the upload button.

I have the name field and the upload button connected to a dataset(write only) and a submit button to submit it to a collection.
Regardless of what I do the file on the upload button does not go to the collection. Everything is connected correctly and the data types on the collection are also correct (document type for the upload and text type for the name).