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
fix (bbb-web): improvements on presentations upload #15990
fix (bbb-web): improvements on presentations upload #15990
Conversation
} | ||
} | ||
|
||
def detectMimeType(File pres) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid placing this kind of function in the Controller... I think it fits better in the class SupportedFileTypes
in bbb-common-web
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also try to use the Java methods to get the mime type.
|
||
public final class Util { | ||
|
||
private static Logger log = LoggerFactory.getLogger(DocumentConversionServiceImp.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static Logger log = LoggerFactory.getLogger(DocumentConversionServiceImp.class); | |
private static Logger log = LoggerFactory.getLogger(Util.class); |
Code improvements using best practices
…-mime-insert-document
When I receive an error I can't send new files! cant-upload-pres-after-error.mp4 |
Add exception to accept ppt with pptx mime
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does this PR do?
It fixes 3 things in total:
insertDocument
with presentation-uploader toast notification;insertDocument
endpoint and deletion of mistaken files.