Skip to content

Commit

Permalink
fix(regression): upload
Browse files Browse the repository at this point in the history
Media uploading test data instead of real data
  • Loading branch information
spwoodcock committed Mar 4, 2024
1 parent 405caf5 commit c28d203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osm_fieldwork/OdkCentral.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def uploadMedia(
url = f"{self.base}projects/{projectId}/forms/{form_name}/draft/attachments/{filename}"
log.debug(f"Uploading media to URL: {url}")
result = self.session.post(
url, data=b"test", headers=dict({"Content-Type": "*/*"}, **self.session.headers), verify=self.verify
url, data=media, headers=dict({"Content-Type": "*/*"}, **self.session.headers), verify=self.verify
)

if result.status_code == 200:
Expand Down

0 comments on commit c28d203

Please sign in to comment.