Skip to main content
1 of 2

Just use path.resolve() method.

import { resolve } from 'path'; app.use('/public/uploads', express.static(resolve('public', 'uploads')))