Refactor: Use io module for seek operation in worker function

This commit is contained in:
Tomi Prasetio 2024-03-17 11:08:58 +07:00 committed by GitHub
parent 517f2256b6
commit dfc027c2ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ class SaveFile:
file_name = getattr(fp, "name", "file.jpg")
fp.seek(0, os.SEEK_END)
fp.seek(0, io.SEEK_END)
file_size = fp.tell()
fp.seek(0)