Skip to content

Commit f1ef237

Browse files
committed
fix: if no file.id set id using pathname in getCustomData()
1 parent 6042290 commit f1ef237

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ async function getFiles(fileInputs, readAs) {
284284
}
285285

286286
async function getCustomData(file) {
287+
if (!file.id) file.id = file.pathname;
287288
// TODO: Consider potential replacment of file_id, perhaps supporting selector
288289
let form = document.querySelector(`[file_id="${file.id}"]`);
289290
if (form) {

0 commit comments

Comments
 (0)