mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
wip
This commit is contained in:
1 parent
a0fbb4636c
commit
d142ca996a
1 file changed
+5
-1
+5
-1
@@ -39,6 +39,8 @@ pub async fn upload_image_and_create_world_with_retry(args: UploadImageAndCreate
|
||||
|
||||
let object_id = response.id;
|
||||
|
||||
info!("Object id: {}", object_id.0);
|
||||
|
||||
// TODO - multiple types.
|
||||
let upload_mime_type= UploadMimeType::ImageJpeg;
|
||||
|
||||
@@ -53,6 +55,8 @@ pub async fn upload_image_and_create_world_with_retry(args: UploadImageAndCreate
|
||||
|
||||
let upload_id = response.id;
|
||||
|
||||
info!("Upload id: {}", upload_id.0);
|
||||
|
||||
info!("Request #3 of 10: begin image upload ...");
|
||||
|
||||
let response = begin_object_image_upload(BeginObjectImageUploadArgs {
|
||||
@@ -112,7 +116,7 @@ mod tests {
|
||||
let cookies = get_typed_test_cookies().unwrap();
|
||||
let bearer_token = get_test_bearer_token().unwrap();
|
||||
|
||||
let file_path = "/home/bt/Pictures/locations/island2.jpg";
|
||||
let file_path = "/home/bt/Pictures/locations/island.jpg";
|
||||
let file_bytes = file_read_bytes(file_path).unwrap();
|
||||
|
||||
println!("File bytes len: {}", file_bytes.len());
|
||||
|
||||
Reference in new issue
Block a user