← Back to team overview

ubuntu-phone team mailing list archive

Re: QML ContentStore example?

 

>
> pull-import branch.  I added it in this commit [4].  As you'll see, it's
> pretty easy to use.  You just need to create a ContentStore object and pass
> it as an argument to the peer.request() calls.
>
> Thanks,  I could not find which API call is passed the the store object :/

With this change the pull-imported file gets put in the right place,
however duplicate imports get aborted. I already retry imports on aborts
because they used to happen previously too for unknown reasons. Now if I
try to import the same photo, it will abort with no additional information,
and I am not sure how to pass which photo was picked back to the app.

The use case is adding attachments to messages, so duplicates can occur,
and importing is only a prerequisite of this.
Can I get the URL of the picked item even when it aborted? ISRT the content
hub silently handles duplicates, so I thought the import would succeed, it
would just reuse/overwrite the previous file named the same.

Jani

References