Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add folder uploading #11

Open
Hattorius opened this issue Oct 22, 2024 · 1 comment
Open

Add folder uploading #11

Hattorius opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Hattorius
Copy link
Owner

It should be possible to upload a folder or multiple files to cipherdrop. Currently it's possible to upload multiple files at once, but this functionality has to be changed as well. You should be able to select multiple files / folders (or singular) and they'll all be zipped together and handled like a normal file.

Expected features

  • Clicking the upload button also allows folder selection
  • You should be able to drop folders into the dropzone
  • If multiple folders and/or files get selected they all get zipped together
  • This zip should be handled just like when you upload a singular file
@Hattorius
Copy link
Owner Author

Currently index.js handles multi file select as follows:

const handleFiles = files => { // FileList
    for (const file of files) {
        handleFile(file);
    }
}

As you can see, it uploads every file separately. I want that zipped. Think of using the JSZip library.

@Hattorius Hattorius added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant