Updated upload.php and adding timestamp to json array