Hi,
I have a problem regarding displaying the files. Actually, my code displays both pdf's and images. I am thinking to have a script to check whether the file is image or pdf before it gets displayed. Can anyone help in this regard.
Thanks,
Rohith
Rohith Reddy
0
Newbie Poster
Recommended Answers
Jump to Postthis isn't very clear. But with only this information i would say check the file extensions on the path. if its .PDF then obviously, and if its .jpeg, .gif, .png, .bmp, ect. then its an image.
All 4 Replies
Diamonddrake
397
Master Poster
PierlucSS
52
Junior Poster
Rohith Reddy
0
Newbie Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.