Skip to content

Restricting archive file uploads based on their mime type

Kevin Paul Reddy Janagari requested to merge noArchives into main

#42 (closed) #43 (closed)

python-magic is used to check for the mime type based on the file contents the check happens when the request goes to /upload

Limiting the duration of a audio / video file to 2 hours

  • Bug fix

Testing

  • Tested using swagger

  • accepts non zip files

  • rejects zip files

  • rejects 2.5 hour file

  • accepts exactly 2 hours file

  • accepts files greater than 10s and less than 2hours

Edited by Kevin Paul Reddy Janagari

Merge request reports

Loading