@noahlovell I made a small fix. It should be toInsert.url = uploadedFiles[0]. fileUrl
What I meant is that the uploadFiles() method is a Promise meaning it runs in parallel to the next code line and therefore you have to wait for the upload to finish before you save it. In my code it does it.