The file download form the server to the client machine will be done by the php, but before that restricting the user in some way or the client side validation will help to achieve what you want exactly with the javascript.
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
Offline 616 posts
since Sep 2009