I’m not sure how to implement this in Bubble - I’ve poked around at the work flow and don’t see actions that map. I’m just in planning phase right now so wondering if someone could talk me through this.
I have a form where a user can submit text + photos.
User can also go back and EDIT text or photos.
Editing text is easy, in the workflow, on Button Submit is clicked, I just make changes to the Object, with the database_text_field = text field’s value.
With editing photos, I only want to change the photo IF they have overridden the old photo with a new one. I don’t see a possible way to detect if the photo in the Photo Uploader widget has changed?
(I know database workflow has a before versus after change, but this is just a standard front end make changes to a thing workflow)
@mitchbaylis, in the workflow I don’t think I have access to the NEW filename, in other words, they’re on the form, they have clicked the picture uploader input widget to upload a file, in the workflow, I only have these options (not filename)
I use an uploader and then compare the name, mimetype and size to ensure there aren’t duplicates in the database… works fine (until the user wants a duplicate… which they eventually did!)
just use the bubble image uploader or file uploader…use a workflow trigger when input value is changed, make it for the uploader of choice and then have it update the database entry to be the uploader value, but also ensure you delete the previous image from the file manager.
You can use that same approach for image uploader or file uploader as well…in the make changes to thing, just make the image field equal to uploader value…ensure you have initial content on uploader set to the database entry value so that if no changes it is the same but if changed it is the new value.