Skip to content

Commit eaba770

Browse files
author
Matt Sokoloff
committed
add mimetype to data row uploads
1 parent 67dfabb commit eaba770

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
# Version 3.18.1 (2022-04-14)
4+
## Fix
5+
* `create_data_rows` and `create_data_rows_sync` now uploads the file with a mimetype
6+
* Orgs that only allow DA uploads were getting errors when using these functions
7+
38
# Version 3.18.0 (2022-04-07)
49
## Added
510
* Added beta support for exporting labels from model_runs
@@ -33,7 +38,7 @@
3338
* Ability to fetch a model run with `client.get_model_run()`
3439
* Ability to fetch labels from a model run with `model_run.export_labels()`
3540
- Note: this is only Experimental. To use, client param `enable_experimental` should
36-
be set to true
41+
be set to true
3742
* Ability to delete an attachment
3843

3944
## Fix
@@ -43,34 +48,34 @@
4348
* Deprecation: Creating Dropdowns will no longer be supported after 2022-03-31
4449
- This includes creating/adding Dropdowns to an ontology
4550
- This includes creating/adding Dropdown Annotation Type
46-
- For the same functionality, use Radio
51+
- For the same functionality, use Radio
4752
- This will not affect existing Dropdowns
4853

4954
# Changelog
50-
# Version 3.15.0 (2022-02-28)
51-
## Added
55+
# Version 3.15.0 (2022-02-28)
56+
## Added
5257
* Extras folder which contains useful applications using the sdk
5358
* Addition of ResourceTag at the Organization and Project level
54-
* Updates to the example notebooks
59+
* Updates to the example notebooks
5560

5661
## Fix
5762
* EPSGTransformer now properly transforms Polygon to Polygon
5863
* VideoData string representation now properly shows VideoData
5964

6065

61-
# Version 3.14.0 (2022-02-10)
62-
## Added
63-
* Updated metrics for classifications to be per-answer
66+
# Version 3.14.0 (2022-02-10)
67+
## Added
68+
* Updated metrics for classifications to be per-answer
6469

6570

66-
# Version 3.13.0 (2022-02-07)
71+
# Version 3.13.0 (2022-02-07)
6772
## Added
6873
* Added `from_shapely` method to create annotation types from Shapely objects
6974
* Added `start` and `end` filter on the following methods
7075
- `Project.export_labels()`
7176
- `Project.label_generator()`
7277
- `Project.video_label_generator()`
73-
* Improved type hinting
78+
* Improved type hinting
7479

7580

7681
# Version 3.12.0 (2022-01-19)

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.18.0"
2+
__version__ = "3.18.1"
33

44
from labelbox.client import Client
55
from labelbox.schema.project import Project

labelbox/schema/dataset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ def convert_item(item):
314314
items = [future.result() for future in as_completed(futures)]
315315
# Prepare and upload the desciptor file
316316
data = json.dumps(items)
317-
return self.client.upload_data(data)
317+
return self.client.upload_data(data,
318+
content_type="application/json",
319+
filename="json_import.json")
318320

319321
def data_rows_for_external_id(self,
320322
external_id,

0 commit comments

Comments
 (0)