multimodalart HF Staff commited on
Commit
4ce2f01
·
1 Parent(s): e284d85

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -2
index.html CHANGED
@@ -18,9 +18,11 @@
18
 
19
  console.log(`Uploading ${files.length} file(s) to ${repo} with access token ${accessToken.substr(0, 4)}...`);
20
 
21
- // Prompt the user for a unique upload path for each file
22
  const filesToUpload = await Promise.all(files.map(async (file) => {
23
- const path = prompt(`Enter the upload path for ${file.name}`);
 
 
24
  return {
25
  path,
26
  content: file,
 
18
 
19
  console.log(`Uploading ${files.length} file(s) to ${repo} with access token ${accessToken.substr(0, 4)}...`);
20
 
21
+ // Prompt the user for a unique upload folder for each file
22
  const filesToUpload = await Promise.all(files.map(async (file) => {
23
+ const folderName = prompt(`Enter the upload folder for ${file.name}`);
24
+ // Append the original filename and extension to the folder name
25
+ const path = `${folderName}/${file.name}`;
26
  return {
27
  path,
28
  content: file,