Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    how to get files by its name,which are uploaded to a folder

    Back-End Development
    nodejs multer
    2
    3
    329
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ijseGovindu
      ijseGovindu last edited by

      I uploaded files to a folder in back-end using a node library.Now I want to get files from that folder by filename,from a one route to display in the front-end

      1 Reply Last reply Reply Quote 0
      • root
        root Linux Help last edited by

        if you want to scan the folder check below article

        https://medium.com/stackfame/get-list-of-all-files-in-a-directory-in-node-js-befd31677ec5

        1 Reply Last reply Reply Quote 1
        • ijseGovindu
          ijseGovindu last edited by

          Thats it.. thank you @root

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          0
          Online

          3.7k
          Users

          1.3k
          Topics

          5.3k
          Posts

          • Privacy
          • Terms & Conditions
          • Donate

          © Copyrights and All right reserved Lanka Developers Community

          Powered by Axis Technologies (PVT) Ltd

          Made with in Sri Lanka

          | |