- Updated onClick handler to copy files to local files dir before uploading