Ability to bulk select files and move to folders💡Feature RequestOct 2, 2024Right now this is unsat:UntitledWatch VideoPosted by Marcos Ruvalcaba · Oct 2, 20242 comments8
Log in to comment and vote
Comments2
Lem
Oct 28, 2024
Yes, this looks extremely redundant and time-consuming.
Marcos Ruvalcaba
Oct 2, 2024
import React, { useState } from 'react';function FileManager() { const [selectedFiles, setSelectedFiles] = useState([]); const [destinationFolder, setDestinationFolder] = useState('');const handleFileSelect = (file) => { // Add or remove file from selectedFiles array };const handleSelectAll = () => { // Select or deselect all files };const handleFolderSelect = (folder) => { setDestinationFolder(folder); };const handleMoveFiles = () => { // Send request to server to move selectedFiles to destinationFolder };return ( <div> {/* File list with checkboxes /} {/ Select All button /} {/ Folder selection dropdown */} <button onClick={handleMoveFiles}>Move Files</button> </div> ); }