Skip to content

Commit

Permalink
added application json and text/plain as allowed mime
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Sep 24, 2024
1 parent 7023ede commit f993415
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion breathecode/media/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import requests
from adrf.views import APIView
from adrf.viewsets import ViewSet
from capyc.rest_framework.exceptions import ValidationException
from circuitbreaker import CircuitBreakerError
from django.db.models import Q
from django.http import StreamingHttpResponse
Expand Down Expand Up @@ -35,7 +36,6 @@
from breathecode.utils.decorators import has_permission
from breathecode.utils.decorators.capable_of import acapable_of
from breathecode.utils.i18n import translation
from capyc.rest_framework.exceptions import ValidationException

logger = logging.getLogger(__name__)
MIME_ALLOWED = [
Expand All @@ -47,6 +47,8 @@
"video/mp4",
"audio/mpeg",
"application/pdf",
"application/json",
"text/plain",
"image/jpg",
"application/octet-stream",
"application/x-pka",
Expand Down

0 comments on commit f993415

Please sign in to comment.