New public file location errors & upload error
-
Hi guys,
I'm having a lot of those errors in the log,
Apr 28 23:50:51 nodebb[14916]: 28/4 23:50:51 [14935] - warn: [deprecated] Accessing `js-enabled.css` from `/` is deprecated. Use `/assets/js-enabled.css` to access this file. Apr 28 23:50:51 nodebb[14916]: 28/4 23:50:51 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/language.json` for prefetch paths. Apr 28 23:50:52 vps301299 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/modules.json` for prefetch paths. Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/modules/composer/preview.js` from `/` is deprecated. Use `/assets/src/modules/composer/preview.js` to access this file. Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/modules/composer/controls.js` from `/` is deprecated. Use `/assets/src/modules/composer/controls.js` to access this file. Apr 28 23:50:52 nodebb[14916]: 28/4 23:50:52 [14935] - warn: [deprecated] Accessing `src/client/chats/search.js` from `/` is deprecated. Use `/assets/src/client/chats/search.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/buzz.js` from `/` is deprecated. Use `/assets/src/modules/buzz.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/client/chats/recent.js` from `/` is deprecated. Use `/assets/src/client/chats/recent.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/client/chats/messages.js` from `/` is deprecated. Use `/assets/src/client/chats/messages.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/composer/formatting.js` from `/` is deprecated. Use `/assets/src/modules/composer/formatting.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing `src/modules/mousetrap.js` from `/` is deprecated. Use `/assets/src/modules/mousetrap.js` to access this file. Apr 28 23:50:53 nodebb[14916]: 28/4 23:50:53 [14935] - warn: [deprecated] Accessing language files from `/api/language` is deprecated. Use `/assets/language/en-GB/global.json` for prefetch paths. Apr 29 00:42:32 nodebb[14916]: 29/4 00:42:32 [14935] - warn: [deprecated] Accessing `src/modules/composer.js` from `/` is deprecated. Use `/assets/src/modules/composer.js` to access this file.
are these because of plugins or can I fix them? And shouldn't I be serving those files with Nginx, why there are logs in node?
Also I'm getting an upload error: I set up that users can upload only files with extension
.pdf
, but whenever they (or I) upload one of those, it gets the same error (Invalid file type. Allowed types are: .pdf
) and there is nothing in the logs... Can you help me?
Copyright © 2024 NodeBB | Contributors