Page 1 of 1

Uploading photo to personal website

Posted: Tue May 26, 2015 1:45 pm
by mo kam

Hi,

I have been messing around with photo taking and uploading using webupload..

How can I get an image taken from the camera uploaded to my own site?


Uploading photo to personal website

Posted: Tue May 26, 2015 6:29 pm
by Evgene Karachevtsev

Hello!

Please look at this tutorial, especially the last part Using Web API. https://devcenter.appery.io/documenta...
You can change the Appery.io db to your own if it provides rest api: https://devcenter.appery.io/documenta...


Uploading photo to personal website

Posted: Tue Mar 29, 2016 12:06 am
by OldeDeBolde

Hi Evgene,

I am breaking my head on this a couple of months. Gave it up a couple of times and picked it up again, because I actually need this too.
I have the complete URL (http://example.com/example.png) stored in local storage.

Using the Webapi, what arguments do I have to change using my URL stored in local storage?

Could you help me with this? Appreciate your help.


Uploading photo to personal website

Posted: Tue Mar 29, 2016 4:25 pm
by Illya Stepanov

Hello -

[quote:]
I have the complete URL (http://example.com/example.png) stored in local storage.
[/quote]

Could you please elaborate here more? Provide us example of your code.

If you are using Web API in this case your image should be encoded into base64 string.


Uploading photo to personal website

Posted: Mon Apr 04, 2016 9:42 pm
by OldeDeBolde

Hi Illya,

I am using Web API described in https://devcenter.appery.io/documenta...

The uploadBinaryHelper function uses 4 arguments

  • datasource; in example above this holds the DB file collection, but I want to upload to my own website. Should I configure Fileupload_settings with the url of my website OR where other should I do this?

  • imageBase64Data (required) - a base64 string of the image. The picture taken with camera(service) is mapped to image_base64

    Image

    name will be read from a localstorage with get()
    type should be PNG

    If file exists it should overwrite!

    I call the function:

    uploadBinaryHelper(webupload, Apperyio.storage.image_base64.get(), Apperyio.storage.webImg.get() , ".png" );

    But nothing is happening.


Uploading photo to personal website

Posted: Tue Apr 05, 2016 5:14 pm
by Serhii Kulibaba

Hello,

That function works only for Appery.io database. If you want to send files to your own server - you can use simple REST service.

Should I configure Fileupload_settings with the url of my website OR where other should I do this

Sure, you have to set all parameters of your server there.


Uploading photo to personal website

Posted: Tue Apr 05, 2016 9:54 pm
by OldeDeBolde

Sergiy,

Can you help me specifying those parameters? What do I have to fill in where? Where do I have fill in the url of my website? I need some directions. I appreciate your help!


Uploading photo to personal website

Posted: Wed Apr 06, 2016 3:19 pm
by Serhii Kulibaba

1) It depend on API of that website. It is impossible to send a file trough ftp protocol. You have to have special API for that
2) fileupload_settings has parameters, which are related to Appery.io database, such databaseID and so on, so they are not used in your website


Uploading photo to personal website

Posted: Sun Apr 10, 2016 12:01 pm
by OldeDeBolde

Hi sergiy, any idea if wordpress has a standard api or plugin for this?


Uploading photo to personal website

Posted: Mon Apr 11, 2016 10:07 am
by Serhii Kulibaba

We are very sorry, but this is something outside the scope (http://devcenter.appery.io/support-po...) of our standard support. Please search online for appropriate solution.