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 and
whether or not this can be validated with javascript?

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
 
P

Psybar Phreak

not exactly what you want, but is a head in the right direction - this
checks that the file is indeed an image file, add more extensions as you
like

PP
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top