sync command not setting correct content types

Đang mở
#555 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

The payload names only the b2 sync and b2 upload-file commands, so start by comparing how each one assigns content types, since the reporter says upload-file gets it right. Run b2 sync on a folder containing .ts and .m3u8 files, then check the stored type with b2 file info. Done when those extensions get video/mp2t and application/vnd.apple.mpegurl without manual flags. The thread is over two years old and has no maintainer decision, so confirm the expected behaviour before writing code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I used the b2 sync command to sync a folder from my server to B2, but the content types (file types) were not what they should've been. I am uploading .ts and .m3u8 files for HLS videos and need their content types to be set to "video/mp2t" and "application/vnd.apple.mpegurl" respectively. I can manually set them using the b2 upload-file command, but I have thousands upon thousands of files to upload and the sync command is much faster and more ideal to use.

I couldn't find any documentation for the sync command on setting the content types.
Are the content types (mime types) coming from what's defined in my system or are they automatically being set on B2's end when they are received?

Is there a way to make sure the content types are set correctly while using the sync command?

Thanks

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.