Skip to content

Commit

Permalink
update test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Nov 8, 2023
1 parent 1779942 commit ff4e467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rethink/models/files/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def upload_obsidian(uid: str, zipped_files: List[UploadFile]) -> const.Code:
if not zipped_file.filename.endswith(".zip"):
__set_running_false(uid, const.Code.INVALID_FILE_TYPE)
return const.Code.INVALID_FILE_TYPE
if zipped_file.content_type != "application/zip":
if zipped_file.content_type not in ["application/zip", "application/octet-stream", "application/x-zip-compressed"]:
__set_running_false(uid, const.Code.INVALID_FILE_TYPE)
return const.Code.INVALID_FILE_TYPE

Expand Down

0 comments on commit ff4e467

Please sign in to comment.