[NodeJS] About the "uploads" directory

Hi guys,

What is the purpose of the uploads directory which can be found in root of a NodeJS Wappler project?

Thank you very much.

Best,
Germán.

It didn’t create an uploads directory in my project. With NodeJS it will be possible to upload files outside of the public folder, so that they are not accessible from the internet. I think the uploads directory will be the default directory for that.

The advantage is that you can secure your files, create a server connect action with a security provider on it that restricts it to logged in users only which can then download the file.

1 Like

Hi, I want to create an upload directory that is accesible if user is logged in. How do I make it? I’ve created in the root directory an upload folder but it’s not accesible at all.

Create a server connect action with the security provider and the download step.