Skip to content

Commit

Permalink
remove file validation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrohitgarg committed Nov 29, 2024
1 parent 7ea60cf commit 5e2c65c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/director/entrypoint/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
videodb_bp = Blueprint("videodb", __name__, url_prefix="/videodb")
config_bp = Blueprint("config", __name__, url_prefix="/config")

SUPPORTED_MEDIA_TYPES = ["audio/mpeg", "video/mp4", "image/jpeg", "image/png"]


@agent_bp.route("/", methods=["GET"], strict_slashes=False)
def agent():
Expand Down Expand Up @@ -101,7 +99,6 @@ def upload_video(collection_id):
if not safe_filename:
return {"message": "Invalid filename"}, 400
file_name = os.path.splitext(safe_filename)[0]
# TODO: Check if the media type is supported, if not, return 400
media_type = file.content_type.split("/")[0]
return videodb.upload(
source=file_bytes,
Expand Down

0 comments on commit 5e2c65c

Please sign in to comment.