Skip to content

Latest commit

 

History

History
101 lines (93 loc) · 2.3 KB

README.md

File metadata and controls

101 lines (93 loc) · 2.3 KB

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