Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error tryng to upload files #500

Closed
israeru49 opened this issue May 9, 2022 · 0 comments
Closed

Error tryng to upload files #500

israeru49 opened this issue May 9, 2022 · 0 comments

Comments

@israeru49
Copy link

israeru49 commented May 9, 2022

Hi

I am experiencing error tryng to upload images or files:

When i paste a image in ticket form from the clipboard:
5|trudesk | TypeError: Busboy is not a constructor
5|trudesk | at ticketsController.uploadImageMDE (/etc/trudesk/src/controllers/tickets.js:538:16)
5|trudesk | at Layer.handle [as handle_request] (/etc/trudesk/node_modules/express/lib/router/layer.js:95:5)
5|trudesk | at next (/etc/trudesk/node_modules/express/lib/router/route.js:137:13)
5|trudesk | at middleware.redirectToLogin (/etc/trudesk/src/middleware/middleware.js:77:10)
5|trudesk | at Layer.handle [as handle_request] (/etc/trudesk/node_modules/express/lib/router/layer.js:95:5)
5|trudesk | at next (/etc/trudesk/node_modules/express/lib/router/route.js:137:13)
5|trudesk | at Route.dispatch (/etc/trudesk/node_modules/express/lib/router/route.js:112:3)
5|trudesk | at Layer.handle [as handle_request] (/etc/trudesk/node_modules/express/lib/router/layer.js:95:5)
5|trudesk | at /etc/trudesk/node_modules/express/lib/router/index.js:281:22
5|trudesk | at Function.process_params (/etc/trudesk/node_modules/express/lib/router/index.js:341:12)
5|trudesk | at next (/etc/trudesk/node_modules/express/lib/router/index.js:275:10)
5|trudesk | at Function.handle (/etc/trudesk/node_modules/express/lib/router/index.js:174:3)
5|trudesk | at router (/etc/trudesk/node_modules/express/lib/router/index.js:47:12)
5|trudesk | at Layer.handle [as handle_request] (/etc/trudesk/node_modules/express/lib/router/layer.js:95:5)
5|trudesk | at trim_prefix (/etc/trudesk/node_modules/express/lib/router/index.js:323:13)
5|trudesk | at /etc/trudesk/node_modules/express/lib/router/index.js:284:7
5|trudesk | at Function.process_params (/etc/trudesk/node_modules/express/lib/router/index.js:341:12)
5|trudesk | at next (/etc/trudesk/node_modules/express/lib/router/index.js:275:10)
5|trudesk | at /etc/trudesk/src/middleware/index.js:116:20
5|trudesk | at /etc/trudesk/src/settings/settingsUtil.js:156:45
5|trudesk | at runMicrotasks ()
5|trudesk | at processTicksAndRejections (node:internal/process/task_queues:96:5)
This appear in the form:
imagen

Also when I try to upload via the clip icons trudesk service restart:
5|trudesk | TypeError: Cannot read properties of undefined (reading 'indexOf')
5|trudesk | at Multipart. (/etc/trudesk/src/controllers/tickets.js:667:16)
5|trudesk | at Multipart.emit (node:events:527:28)
5|trudesk | at HeaderParser.cb (/etc/trudesk/node_modules/busboy/lib/types/multipart.js:348:14)
5|trudesk | at HeaderParser.push (/etc/trudesk/node_modules/busboy/lib/types/multipart.js:161:20)
5|trudesk | at SBMH.ssCb [as _cb] (/etc/trudesk/node_modules/busboy/lib/types/multipart.js:384:37)
5|trudesk | at feed (/etc/trudesk/node_modules/streamsearch/lib/sbmh.js:219:14)
5|trudesk | at SBMH.push (/etc/trudesk/node_modules/streamsearch/lib/sbmh.js:104:16)
5|trudesk | at Multipart._write (/etc/trudesk/node_modules/busboy/lib/types/multipart.js:559:19)
5|trudesk | at writeOrBuffer (node:internal/streams/writable:389:12)
5|trudesk | at write (node:internal/streams/writable:330:10)
5|trudesk | at Multipart.Writable.write (node:internal/streams/writable:334:10)
5|trudesk | at IncomingMessage.ondata (node:internal/streams/readable:754:22)
5|trudesk | at IncomingMessage.emit (node:events:527:28)
5|trudesk | at IncomingMessage.Readable.read (node:internal/streams/readable:527:10)
5|trudesk | at flow (node:internal/streams/readable:1011:34)
5|trudesk | at resume
(node:internal/streams/readable:992:3)
5|trudesk | at processTicksAndRejections (node:internal/process/task_queues:83:21)
PM2 | App [trudesk:5] exited with code [1] via signal [SIGINT]
PM2 | App [trudesk:5] starting in -fork mode-
PM2 | App [trudesk:5] online
5|trudesk | 05-09-2022 11:50:30 [2923584] info: . .o8 oooo
5|trudesk | 05-09-2022 11:50:30 [2923584] info: .o8 "888 888 5|trudesk | 05-09-2022 11:50:30 [2923584] info: .o888oo oooo d8b oooo oooo .oooo888 .ooooo. .oooo.o 888 oooo 5|trudesk | 05-09-2022 11:50:30 [2923584] info: 888 888""8P 888 888 d88' 888 d88' 88b d88( "8 888 .8P'
5|trudesk | 05-09-2022 11:50:30 [2923584] info: 888 888 888 888 888 888 888ooo888 "Y88b. 888888. 5|trudesk | 05-09-2022 11:50:30 [2923584] info: 888 . 888 888 888 888 888 888 .o o. )88b 888 88b.
5|trudesk | 05-09-2022 11:50:30 [2923584] info: "888" d888b V88V"V8P' Y8bod88P" `Y8bod8P' 8""888P' o888o o888o
5|trudesk | 05-09-2022 11:50:30 [2923584] info: ==========================================================================
5|trudesk | 05-09-2022 11:50:30 [2923584] info: trudesk v1.2.0 Copyright (C) 2014-2022 Chris Brame

Can you help me? Thanks
Environment:

  • Trudesk Version: 1.2
  • OS (e.g. from /etc/os-release): red hat 8
  • Node.JS Version: 16.15.0
  • MongoDB Version: 5
  • Is this hosted on cloud.trudesk.io: nope
polonel added a commit that referenced this issue May 14, 2022
## [1.2.1](v1.2.0...v1.2.1) (2022-05-14)

### Bug Fixes

* **notifications:** issue where notifications would not update [#495](#495) ([f529734](f529734))
* **tickets:** error when uploading attachments [#500](#500) ([d861f04](d861f04))
* **tickets:** unable to upload image in reply [#500](#500) ([ddf2486](ddf2486))
* **uploads:** removal of EXIF data on profile picture uploads ([097b482](097b482))
@polonel polonel closed this as completed May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants