File uploading dialog basic code