kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
I have this code here that I use to upload images to my application.
It's doing the job just that there are a few lines I want to modify.
Here, I want the app to alert me if the name I have accepted from the freg2 is already assigned to an image file in the destination folder.
But it flags the alert anytime I am uploading the image from the destination folder.
Here too, instead of deleting the image if it's already found in the folder, I want to rename it.
Maybe image1 for the old file before bringing the new file.
So if the image is named "red apple" in the folder and I am uploading a new "red apple" from a different folder, then I rename the old image as "red apple1".
And instead of moving the file from the source, I want to copy it instead.
I wrote this code long ago after adding some pieces together. But now, I am stucked as to how to get what I want working for me.
I need Tech support.
Thanks
It's doing the job just that there are a few lines I want to modify.
Here, I want the app to alert me if the name I have accepted from the freg2 is already assigned to an image file in the destination folder.
But it flags the alert anytime I am uploading the image from the destination folder.
Here too, instead of deleting the image if it's already found in the folder, I want to rename it.
Maybe image1 for the old file before bringing the new file.
So if the image is named "red apple" in the folder and I am uploading a new "red apple" from a different folder, then I rename the old image as "red apple1".
And instead of moving the file from the source, I want to copy it instead.
I wrote this code long ago after adding some pieces together. But now, I am stucked as to how to get what I want working for me.
I need Tech support.
Thanks