We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f083cb8 commit 6b9fea4Copy full SHA for 6b9fea4
1 file changed
dadi/lib/controller/post.js
@@ -24,7 +24,8 @@ PostController.prototype.post = (req, res) => {
24
25
// Listen for event when Busboy finds a file to stream
26
busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {
27
- this.fileName = filename
+
28
+ this.fileName = filename.replace(/[^a-z0-9\-_.]+/gi, '_')
29
this.mimetype = mimetype
30
31
file.on('data', (chunk) => {
0 commit comments