From 5f346b73b3d130022d56270ae174f654b3c2d77a Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 20 Jan 2012 23:22:36 +0000 Subject: a better way to detect the file now that the list of file types is eliminated it should accept whatever file cards wants to send Signed-off-by: Michael Krelin --- diff --git a/src/eyefiservice.cc b/src/eyefiservice.cc index 276977a..d9318ed 100644 --- a/src/eyefiservice.cc +++ b/src/eyefiservice.cc @@ -127,6 +127,12 @@ int eyefiService::UploadPhoto( macaddress.c_str(), fileid, filename.c_str(), filesize, filesignature.c_str(), encryption.c_str(), flags ); #endif + std::string::size_type fnl=filename.length(); + if(fnl