Create new record and upload image

I need to manage a collection, supporting all CRUD operations. The collection has an image field to which I’d like to be able to upload during the record creation operation. The file upload button seems to require that I associate the form with a dataset, so I created a dynamic page and associated the input fields with the dataset. When I preview the page and hit the Submit button I get the error “save operation failed: DatasetError: Operation (save) not allowed on an unconfigured dataset”. I messed around for a bit but seem to always get this error.

Can you create new records in a database using a dynamic page? Do you need to use a dataset when uploading a file to a database? Has somebody done this sort of thing before? I’d really appreciate if you can point me at sample code or docs.

Ignore - the trick is to create a “form dataset” on a static page, see the Add gesture screenshot:

Your issue is not really code related, therefore you would have been better suited going through Wix Support directly for more help, or simply reading teh Wix Support pages themselves.
https://support.wix.com/en/article/contacting-wix-support
https://support.wix.com/en/article/adding-and-setting-up-an-upload-button
https://support.wix.com/en/article/adding-a-submit-button-to-your-form