Only my photos with space within their names return error 500, the rest is okay. Is there something wrong with my express app ? I even tried using %20 but still no success.
server.js
const app = express();
const __dirname = path.resolve();
app.use("/uploads", express.static(path.join(__dirname, "/uploads")));
app.use(express.static(path.join(__dirname, "/frontend/build")));
app.get("*", (req, res) =>
res.sendFile(path.join(__dirname, "/frontend/build/index.html"))
);