Added file extension check and alert for constraining file types.

Modified check_already_uploaded function to handle error_callback properly - fixes the timeout issue encountered with big files.