Skip to content

kamal-chagam/vuefilemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

this is file nagivator in browser

Requirements :

   vuejs >= 1 & vue-resource (0.1.16) 
   uikit ( fron-end desgin kit)

the current featutes :

1) Folder navigation ( backward is also possible )
2) folder creation 
3) file upload

the urls are

GET /files

to get the list of directories under 'dir'

POST /files

to create folder under the current folder opened currently in browser the json format used

 {
    name : "new_folde_name",
    path : "path/folder/to/be/created"
 }

POST /uploadFiles

to upload file

this is json file format expected,

[  
   {  
      "name":"uploads",
      "type":"folder",
      "path":"uploads",
      "items":[  
         {  
            "name":"file.txt",
            "type":"file",
            "path":"uploads/file.txt",
            "size":8
         },
         {  
            "name":"hotel",
            "type":"folder",
            "path":"uploads/hotel",
            "items":[  
               {  
                  "name":"kamal.jpg",
                  "type":"file",
                  "path":"uploads/hotel/kamal.jpg",
                  "size":34017
               },
               {  
                  "name":"visa.jpg",
                  "type":"file",
                  "path":"uploads/hotel/visa.jpg",
                  "size":561074
               },
               {  
                  "name":"new",
                  "type":"folder",
                  "path":"uploads/hotel/new",
                  "items":[  
                     {  
                        "name":"test",
                        "type":"folder",
                        "path":"uploads/hotel/new/test",
                        "items":[  
                           {  
                              "name":"Name",
                              "type":"folder",
                              "path":"uploads/hotel/new/test/Name",
                              "items":[  

                              ]
                           }
                        ]
                     }
                  ]
               }
            ]
         }
      ]
   }
]

Things To Do


0) URL hard coding has to be removed
1) Delete folder/file
2) Rename folder/file
3) upload the folder 
4) Icons on file according to file MIME type  

About

navigate the folders/files in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages