Updated file upload algorithm. Better angular incorporation and multiple/sequential file uploads possible