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 05fd4d2 commit 7d1e85fCopy full SHA for 7d1e85f
1 file changed
src/webserver/database/csv_import.rs
@@ -160,11 +160,10 @@ pub(super) async fn run_csv_import(
160
})?
161
.file;
162
let file_path = named_temp_file.path();
163
- let file_name = file_path.file_name().unwrap_or_default();
164
let file = tokio::fs::File::open(file_path).await.with_context(|| {
165
format!(
166
"The CSV file {} was uploaded correctly, but could not be opened",
167
- file_name.display()
+ file_path.display()
168
)
169
})?;
170
let buffered = tokio::io::BufReader::new(file);
@@ -180,7 +179,7 @@ pub(super) async fn run_csv_import(
180
179
let table_name = &csv_import.table_name;
181
182
"{} was uploaded correctly, but its records could not be imported into the table {}",
183
- file_name.display(),
+ file_path.display(),
184
table_name
185
186
})
0 commit comments