Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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
    Felgo 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.felgo.com” 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.