I need to attach a file to a model. But the file upload component does not seem to work.

Have you followed this tutorial? 

http://help.skuidify.com/m/components/l/102565-use-the-file-component-to-attach-files-to-a-record