Forums

OverviewV-Play 2 Support (Qt 5) › gameNetwork.uploadImage() invalid Url

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13878

    Phil

    After I successfully uploaded an image with gameNetwork.uploadImage(), the returned Url is invalid.  For example:

    gameNetwork.uploadImage

                        (
                            path,
                            function(success, url)
                            {
                                console.log("upload: " + success + ", " + url)
                                if (success)
                                    profileList.model.append({"image_url": url});
                            }
                        )
    
    

     

    Will print on the console something like:

    qml: upload: true, /pictures/8728345e056a5c56e7438

     

    But this is not a public Url.

    #13891

    Alex
    V-Play Team

    Hello Phil,

    There seems to be a bug in the callback function call, which strips the base url of the returned url parameter. This will be fixed with the next update. For now you can prefix the returned url with “http://gamenetwork.v-play.net” in order to open the uploaded image.

    Thanks,

    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support