I have configured "allow users to upload any file"
If I upload a pdf file, I get the following error message:
"Invalid file type. Allowed types are: .png, .jpg, .bmp, .jpeg"
NodeBB V1.13.3
node --version
v10.20.1
Any help is appreciated -
I have configured "allow users to upload any file"
If I upload a pdf file, I get the following error message:
"Invalid file type. Allowed types are: .png, .jpg, .bmp, .jpeg"
NodeBB V1.13.3
node --version
v10.20.1
Any help is appreciated -
I have resolved this issue by adding the following rule to local_rules.xml.
<rule id="100014" level="0">
<if_sid>31533</if_sid>
<url>^/socket.io/</url>
<description>Ignoring NodeBB (socket.io).</description>
</rule>
I use NodeBB 1.13.3 on Ubuntu 18.04 where OSSEC is also installed on.
While using NodeBB, after some clicks I get the following message from OSSEC:
"High amount of POST requests in a small period of time (likely bot)."
Then my IP address gets blocked
If I stop ossec, then all works fine.
Any idea how to resolve this - much appreciated !
ok, I just did a downgrade - now all works fine !!
nodejs --version
v13.14.0
nodejs --version
v14.2.0
Ok, what shall I do now - downgrade nodejs?
Hi
Freshly installed NodeBB 1.13.3 on Ubuntu 18.04.
All works fine but uploading any file (category, logo, etc) gives the following error in the UI:
"invalid-files"
In the log the error is as following:
"...
Error: [[error:invalid-files]]
at validateFiles (/home/<user>/nodebb/src/middleware/index.js:107:15)
at Layer.handle [as handle_request] (/home/<user>/nodebb/node_modules/express/lib/router/layer.js:95:5)
at next (/home/<user>/nodebb/node_modules/express/lib/router/route.js:137:13)
at Form.<anonymous> (/home/<user>/nodebb/node_modules/connect-multiparty/index.js:114:7)
at Form.emit (events.js:315:20)
at emitCloseNT (internal/streams/destroy.js:81:10)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
..."