Skip to main content
deleted 123 characters in body
Source Link

Just use path.resolve() method.

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

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

Just use path.resolve() method.

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

Just use path.resolve() method.

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

Just use path.resolve() method.

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