Jean Paul Meynard
Posts: 0
Joined: Sun Jan 04, 2015 11:32 pm

Sirv integration

Hi! I have added Sirv plugin but I am puzzled by the business logic of the plugin. It looks like it works only on images uploaded into Sirv cloud storage and not on the ones already stored at Apperyio's. Is this the correct assumption?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Sirv integration

Hi Jean,

Here is code of "setImage" function.

precode

function setImage()
{
var resultURL = Apperyio.storage.photoLink.get() + '&scale.width=' + Apperyio('width_slider').val() + '%&quality=' + Apperyio('quality_slider').val();
Apperyio('image').attr('src', resultURL);
Apperyio('url').val(resultURL);
}

/code/pre

As you can see you can use here any sirv url.

Also - you can just use sirv service like you need.

See more info here: https://sirv.com/resources/api/

Regards.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Sirv integration

Hi Yuri

I have the same question. My images are stored in the Appery Files DB. Is there anyway I can reference them on must my files sit on the SIRV platform?

Thanks

Jake Brumby
Posts: 0
Joined: Fri Jun 03, 2016 12:18 am

Sirv integration

Hi Deon,

Your images must be stored on the Sirv platform.

You can upload images to your Sirv account either with S3 file transfer, FTP or browser upload. Options are explained here: https://sirv.com/resources/getting-st...

To test it, register an account here: https://my.sirv.com/#/signup

Jake
Sirv

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Sirv integration

Thanks Jake

I need to do this programatically from my app. I do not use Amazon S3 as this is an unwanted cost. Cant use JScript to FTP either.

Neither of these two option proposed is helpfull for pushing an image from a mobile device.

Unless I am missing something?
Thank you

Howard Chang
Posts: 0
Joined: Mon Nov 16, 2015 6:05 am

Sirv integration

I wanted to ask the same question. It's not clear on the instruction on how to upload image directly from the App like what Deon mentioned so I am hesitate to use the service.

Jake Brumby
Posts: 0
Joined: Fri Jun 03, 2016 12:18 am

Sirv integration

Deon - you don't need an Amazon S3 account. Sirv allows you to transfer files using the AWS S3 REST API, which is fast, secure and reliable (unlike FTP). Confusingly, it shares the name with the AWS S3 storage service, which is Amazon's paid storage service. The Sirv platform doesn't use Amazon S3 storage, it merely uses S3 compatible storage and transfer, meaning you may use the AWS S3 REST API.

Your S3 credentials are shown on this page in your Sirv account: https://my.sirv.com/#/account

Howard - you should use the AWS SDK for JavaScript (it's a REST API) to build REST requests like in this Appery.io screenshot:

Image

An example of using the AWS SDK for JavaScript is here:

https://sirv.com/resources/api/#AWS_S...

Yurii - it would be great if Appery.io could provide a service to communicate with Sirv using the AWS SDK for JavaScript. Then all Appery.io users can make use of Sirv without each of them having to build REST requests. Could we explore this together? We can work with the Appery.io developers to build the integration - it will be quite easy and fast.

Thanks,

Jake
Sirv

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Sirv integration

Hi Jake - Thank you for writing in and your offer. Please, contact Max directly at: a href="mailto:max@appery.io" rel="nofollow"max@appery.io/a

Return to “Issues”