Large file bug fix & file type contraint enhancement

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