Is there a way to upload data using document's image url?

im stuck in a situation whereby a form has 2 modes: create and edit, identified by a flag called isEdit. this form allows the user to upload an image, which is compulsory, validated by the form. the image is also previewed with an image widget. the image widget will check if the uploaded file url is not empty if it is, it uses the uploaded file url, else, it checks isEdit, if true, it uses the image url from the document that's being edited, else, it will use a dummy image url.

So when the form is in create mode, a dummy image is set for the image widget, only after the user uploads an image to firebase, then it will display his uploaded image using the uploaded file url. for the edit mode, it will use the image url from the document that's being edited and if the user uploads a an image to firebase, then it will display the updated image using the uploaded file url.

the issue lies with the validation of the form. right now it can only check if container upload data is true or not. this works for create mode, whereby it will alert the user if he has not uploaded an image, but it doesnt work for edit mode, as the user can edit other fields but not the image, so there is no uploaded data, causing the form validation to throw an alert telling the user to upload data. since the form validation only checks for whether there is uploaded data or not, i was wondering if it possible that when the the form is in edit mode, it will first upload data using the image url from the document that's being edited, such that even if the user does not upload a new image, the validation passes as the upload data is set to true.