http - REST server file browser with resume capability -


i want develop rest server file manager resume capability using .net core webapi. have:

get api/filemanager/path/to/directory: returns json content of directory (subdirectories , files)

get api/filemanager/path/to/file.txt: download file resume capability (e.g. range: bytes=0-1023)

head api/filemanager/path/to/file/or/directory: returns empty 200 if file or directory exists, if not returns empty 404

put api/filemanager/path/to/file.txt (with file content in body): upload file

delete: delete file or directory if exists

now struggling other functions such rename or compress questions:

  1. how can implement "rename" (which includes move case) file or directory function rest? put or patch? thinking input have contain new full name of file/directory
  2. how can implement "compress"? client send json body containing files , directories added zip file. none of verbs sounds suitable, example, if use post, not able differentiate file upload
  3. am missing in implementing file download resume? heard bytes=0-0,-1 have no idea it.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -