@@ -175,6 +175,9 @@ int ftp_chkput(struct obex_session *os, void *user_data)
ret = obex_put_stream_start(os, path);
+ if (obex_get_size(os) != OBJECT_SIZE_DELETE && obex_get_size(os) != OBJECT_SIZE_UNKNOWN)
+ manager_emit_transfer_property(ftp->transfer, "Size");
+
if (ret == 0)
manager_emit_transfer_started(ftp->transfer);
@@ -87,6 +87,9 @@ skip_auth:
err = obex_put_stream_start(os, path);
+ if (obex_get_size(os) != OBJECT_SIZE_DELETE && obex_get_size(os) != OBJECT_SIZE_UNKNOWN)
+ manager_emit_transfer_property(user_data, "Size");
+
g_free(path);
if (err < 0)
@@ -716,9 +716,6 @@ int obex_put_stream_start(struct obex_session *os, const char *filename)
return err;
}
- if (os->size != OBJECT_SIZE_DELETE && os->size != OBJECT_SIZE_UNKNOWN)
- manager_emit_transfer_property(os->service_data, "Size");
-
os->path = g_strdup(filename);
return 0;