React JS File uploader handler component with loading process and error management. Returns local uploaded file contents via callback