Thank you very much Teseo
yeah that's nice, i really appreciate it.
actually i just wanted to do this way to solve one of my problems but it did NOT fixed it, the problem is: i don't have a mobile version in my osclass, because i removed mobile version before because of some reasons. and when i open my website with mobile android phone, and want to upload the photo, selecting photo from memory card is okay but when i want to take (capturing) a photo, it gives me error (Unable to complete previous operation due to low memory) with both chrome and other browser,.
but after changing the code to your photo uploader, its working fine but the problem did NOT solve, still the same error, but thank you very much its a good photo uploader.
regards