Fix: Use model to clear file after upload. Moved jQuery code to directive.