You are talking about multiple users updating from multiple sources to a common database.
So you’re basically inputting a data field into your shared database which has no interaction with the operating/filing system of the sending computer.
To store the image the sender has indicated the name of a file in the first instance to be able to upload it. I do not believe we have a cut and paste option for images therefore a filename and location has to be specified.
You could assign a label to be displayed with the image as opposed to the filename but not altering the image name, I would not think that was possible.
To give an example if I click to see the path and name of an image stored in my database it comes up like this
Yes, it can be redone but you have to use Javascript.
$(document).on(‘knack-scene-render.scene_XYZ’, function(event, scene) {
// Watch for file input change on the file field
$(document).on(‘change’, ‘input\[type=“file”\]’, function(e) {
let fileInput = e.target;
let file = fileInput.files\[0\];
if (file) {
// Get the user-entered "Image Name" from the form field
let imageName = $('input[name="field_123"]').val(); // Replace field_123 with your image name field key
if (imageName) {
// Clean up name: remove spaces and non-alphanumerics
let safeName = imageName.toLowerCase().replace(/[^a-z0-9]/g, '');
// Keep file extension
let extension = file.name.split('.').pop();
let newName = safeName + '.' + extension;
// Create a new File object with renamed filename
let renamedFile = new File([file], newName, { type: file.type });
// Replace the input’s FileList with the new file
let dataTransfer = new DataTransfer();
dataTransfer.items.add(renamedFile);
fileInput.files = dataTransfer.files;
}
}
});
});