Skip to content

Commit

Permalink
[WEB 3053]feat: support LibreOffice file attachments in issues (#6343)
Browse files Browse the repository at this point in the history
* feat: API endpoints for stickies

* Support libre office in issue attachments

* Remove flash
  • Loading branch information
sangeethailango authored Jan 10, 2025
1 parent 7b3f206 commit de009d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apiserver/plane/app/views/issue/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ def post(self, request, slug, project_id, issue_id):

# 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(
{
Expand Down
12 changes: 12 additions & 0 deletions apiserver/plane/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@
"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",
Expand Down

0 comments on commit de009d6

Please sign in to comment.