Hi,
What do you want to achieve with this code? use the camera to take photo and upload this photo by uploader directly?
Regards,
Ken