Pure javascript solution to pre upload files.