Display the uploaded file


#1

I had success drag file that the user want to upload and store the uploaded file in the meteor public folder. Now, i want to retrieve back the uploaded file and display it on the page: then allow the user to download the files. any suggestion?


#2

Files in the public folder, can be linked like this :

  • If the file is in /public/
    <img src="/my-image.png" />

  • If the file is in /public/folderA/folderB/
    <img src="/folderA/folderB/my-image.png" />


#4

Thank you for the replay, but this will only display the specify file that we declare in
what i meant is that everytime the user uploaded a file, it will be automatically display it and available for other user to download it. do you have any suggestion?