Modified to accept a byte-buffer as well as a File for upload
Clear interrupt after tests