Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

http://appery.io/app/mobile-frame?src...

  1. Register at the first page and login with the registered account,
  2. Click Album at the Nav Bar
  3. Upload the files to the input, and click upload button
Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

HI Mark,

Could not register in your app. When click on "Register" nothing happens.

Regards.

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

May you try again?
Its working in my testing, register and it will return back to login screen and type the registered details and it logged in successfully

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

its also happening in other pages when I try to invoke service in success event of the service, it's not invoking the target service,
I've already use the weinre debugger to check is the target service invoked and its not invoking.
I've also tried to use JS code to call the target service executed like this:
<codeProfilePicture.execute({});
And its not working too!

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

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

Hi Mark,

Checked your app.

You have incorrect "response" settings for upload service.

Here is how it should be: http://prntscr.com/6c2lni/direct

Regards.

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

Thank you,
but using a create service to "create a file", It requires a Original File Name and file Name (File Name I've already get it from response)
What should I add in for the response parameter for the uplaod service and give it to create service?
Image

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

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

Hi Mark,

This service returns only "fileName" and "fileUrl" fields.

So you can not add parameter to this response.

Regards.

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection

I have find my solution (I think)
When users upload files to the database, the upload service success will call a create service in a collection which get the response of the filurl, filename, username and id (in the storage).
When the user need to see the picture, then list service of the collection will be used!
I will contact u if I have any problems!
Hopefully answered

Return to “Issues”