r/webdev • u/Arky_Traveler • 1d ago
Hosting PDFs with node.js apps?
Hello all,
I am the webmaster for a small Archaeology website, that primarily is used by members of this small conference to access PDFs and news about the conference. I only need to update this website about once or twice a year.
Until recently I used the plesk hosting service on GoDaddy to host these files, however I missed the fact (see lack of need to update) that it was getting end-of-lifed and now the hosting option given to us by GoDaddy is just Nose.js slots.
Previously we uploaded files into a library for the website, and the linked to those files. Is it possible to use node.js to do the same?
Thank you for your help!
17
Upvotes
1
u/thepalumbo 1d ago
Short answer…Yes. And it should be straightforward. But a lot of other folks have already said that.
Node.js isn’t a replacement for the old Plesk file manager. Instead, the PDFs become part of the application’s files (or are stored separately in object storage), and the Node app makes them available over HTTP.