Camera tool questions

Hi. I am using the camera tool, and I have a couple of questions about this:

  1. Once the file is selected, how can I get the file name of the uploaded foto?

  2. I already got the information of the file using the e.target.result on a camera_onload(e) event. This is be very useful to store the photo in the server. Now… my question is… can I use this same tool to upload a pdf file? had anyone tested this?

  3. Whenever the “file to select” windows is opened. Is there any way to setup the file type that can be selected (i.e. *.jpg | *.png)?

Thanks in advance for the help.

Best Regards,
Adrián.

Select file type, try

<input type="file" id="imgPicker" accept=".jpeg, .png">

To get the file name:

imgPicker.value

Thanks a lot pal… I will try it.

Regards,
Adrian