fix missing truncate for LFS for web app.....

This commit is contained in:
openshwprojects
2022-06-04 14:10:03 +02:00
parent 5f0636f68b
commit d5c0525df3

View File

@ -482,6 +482,10 @@ static int http_rest_post_lfs_file(http_request_t *request){
}
}
} while ((towrite > 0) && (writelen >= 0));
// no more data
lfs_file_truncate(&lfs, file,total);
//ADDLOG_DEBUG(LOG_FEATURE_API, "closing %s", fpath);
lfs_file_close(&lfs, file);
ADDLOG_DEBUG(LOG_FEATURE_API, "%d total bytes written", total);