We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b725d24 commit 34eb89bCopy full SHA for 34eb89b
.DS_Store
0 Bytes
code/components/jomjol_fileserver_ota/server_file.cpp
@@ -96,7 +96,7 @@ esp_err_t get_tflite_file_handler(httpd_req_t *req)
96
printf("File: %s\t", _filename.c_str());
97
98
_fileext = _filename;
99
- pos = _fileext.find(".");
+ pos = _fileext.find_last_of(".");
100
if (pos != std::string::npos)
101
_fileext = _fileext.erase(0, pos + 1);
102
0 commit comments