Skip to content

Suggestion: Add folder/directory upload to Puter #2063

@reynaldichernando

Description

@reynaldichernando

hi team, so i was trying to upload my files to puter via the right-click > upload here

but i noticed that the file picker only support uploading files, but not entire directory

this is not a big deal, since i can still work around this by just dragging all the files + folders into puter deskop
^ for some reason dragging folder works, but not via standard html file picker

i did some research for this, and seems like it's possible with directory html attribute

<form method="post" enctype="multipart/form-data">
    <input type="file" name="files[]" id="files" multiple="" directory="" webkitdirectory="" mozdirectory="">
    <input class="button" type="submit" value="Upload" />
</form>

source: https://stackoverflow.com/questions/4008406/upload-a-whole-directory-through-an-html-form

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions