Connecting Upload Button to Dataset

I have an upload button in a lightbox where the user will upload their profile picture and it connects to a dataset (I have set the filter to the correct item). However, even though I submit my picture it still doesn’t update it. In the same form there are 2 text boxes for the full name and username and those work perfectly fine. The dataset is set to read and write content. I’m not sure why this is happening. Any help helps!

Is the field a image field?

Yes.
“Supported File Type: Image”

Can you post a link to the site so we can take a look?
Do you get any errors in the browser console?

Here you go https://balaramdb.wixsite.com/tikbooks
EDIT: I didn’t get any errors at all
PS. This is inside a lightbox
PSS. It works on a normal page

I believe the issue is that the dataset is configured to “write only” mode, meaning it will only submit new content. What you want here is editing existing content (adding a profile picture to an exiting user record in the collection). Setting the dataset to “Read & Write” should probably solve this issue.

Another thing is that you filter the dataset when the page loads by the current user.
I would disable the submit button until the dataset has loaded the wanted user record.

1 Like