[WEB 3053]feat: support LibreOffice file attachments in issues (#6343)
* feat: API endpoints for stickies * Support libre office in issue attachments * Remove flash
This commit is contained in:
parent
7b3f206f57
commit
de009d6d10
2 changed files with 14 additions and 0 deletions
|
|
@ -120,10 +120,12 @@ class IssueAttachmentV2Endpoint(BaseAPIView):
|
|||
|
||||
# Get the presigned URL
|
||||
storage = S3Storage(request=request)
|
||||
|
||||
# Generate a presigned URL to share an S3 object
|
||||
presigned_url = storage.generate_presigned_post(
|
||||
object_name=asset_key, file_type=type, file_size=size_limit
|
||||
)
|
||||
|
||||
# Return the presigned URL
|
||||
return Response(
|
||||
{
|
||||
|
|
|
|||
|
|
@ -361,6 +361,18 @@ ATTACHMENT_MIME_TYPES = [
|
|||
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
||||
"text/plain",
|
||||
"application/rtf",
|
||||
"application/vnd.oasis.opendocument.spreadsheet",
|
||||
"application/vnd.oasis.opendocument.text",
|
||||
"application/vnd.oasis.opendocument.presentation",
|
||||
"application/vnd.oasis.opendocument.graphics",
|
||||
# Microsoft Visio
|
||||
"application/vnd.visio",
|
||||
# Netpbm format
|
||||
"image/x-portable-graymap",
|
||||
"image/x-portable-bitmap",
|
||||
"image/x-portable-pixmap",
|
||||
# Open Office Bae
|
||||
"application/vnd.oasis.opendocument.database",
|
||||
# Audio
|
||||
"audio/mpeg",
|
||||
"audio/wav",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue