Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Use Jquery or AJAX to check if a file exists

How could I use jQuery or AJAX to check if there are:
1) a pdf
2) and an mp4
files in a folder?
I know the file names, if that is useful.

thanks in advance
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

You would have to have a program on the server that you contact that can check to see if the files are there.  You can't check anything on the user's local machine.
Avatar of badwolfff

ASKER

At present the site is on localhost
and once it works I will transfer it to a server.
Can it be done?
And if so, how?
thanks again for replying
Of course it can be done on the server.  The scripting is trivial in any commonly used server side scripting language.

Cd&
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial