File Name Validation when Uploading Images

J

JonChart

Hi all,

I would like to know ho to validate a file name when uploading via asp. I
need to upload 2 images and the file names must be the same...

1) browse for 1st image.
2) image path and file name appears in text box i.e. IMAGE1.JPG
3) browse for 2nd image.
4) 2nd image file name MUST match the file name in the text box of 1st image
i.e IMAGE1.JPG.

Hope this is clear...

How can this be done.

Many thanks,

Jon
 
R

Ray at

If
YourUploadComponent.TheCollectionOfFiles.Item(0).ThePropertyForTheFileName =
If
YourUploadComponent.TheCollectionOfFiles.Item(1).ThePropertyForTheFileName
Then...

It's hard to say unless you say what you're using as an upload acceptor.

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top