Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion motioneye/uploadservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def upload_file(self, target_dir, filename, camera_name):
# Uploads the given file using a managed uploader, which will split up
# large files automatically and upload parts in parallel.
self.debug(f'uploading file "{filename}" to S3 bucket "{self._bucket}"')
s3.upload_file(filename, self._bucket, filename[len(target_dir) :])
s3.upload_file(filename, self._bucket, os.path.basename(filename))

def test_access(self):
try:
Expand Down