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

Web file management, upload #50

Merged
merged 50 commits into from
Mar 27, 2023
Merged

Web file management, upload #50

merged 50 commits into from
Mar 27, 2023

Conversation

SpComb
Copy link
Member

@SpComb SpComb commented Mar 19, 2023

Implement a HTTP /vfs API with the following endpoints:

  • GET /vfs
  • GET /vfs/<mount>
  • GET /vfs/<mount>/<directory>/
  • GET /vfs/<mount>/<file>
  • POST /vfs/<mount>/<directory>/
  • PUT /vfs/<mount>/<file>
  • DELETE /vfs/<mount>/<directory>/
  • DELETE /vfs/<mount>/<file>

File uploads with a Last-Modified request header also set the filesystem mtime to the original file mtime.

Use a new vfs_dev to return vfs stat (sectors total/used/free) for operations.

Add a new Files view to the Vue web UI:

  • List of mounts with their filesystem usage and free space (updates on upload/delete)
  • List of directories, expandable
  • List of files, with size/mtime metadata
  • Create new directories
  • Upload new files, with file upload progress
  • Download files
  • Delete files
  • Delete directories

image

image

@SpComb SpComb marked this pull request as ready for review March 20, 2023 00:02
@SpComb SpComb changed the title HTTP/web support for vfs files Web file management, upload Mar 21, 2023
@SpComb SpComb merged commit 7880912 into master Mar 27, 2023
@SpComb SpComb deleted the vfs-files branch March 27, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant