This is a migrated thread and some comments may be shown as answers.

How to add upload File or Image in friends app

3 Answers 392 Views
AppBuilder in-browser client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sampath
Top achievements
Rank 1
sampath asked on 26 Jul 2014, 07:32 AM
Hi, I'm new to telerik app builder and i'm using friends app to develop a hybrid app, so my question is how to add an upload button in activity page when user adding activity which should display in the same activity page. when other users open that activity page they can download the file.

3 Answers, 1 is accepted

Sort by
0
Martin Yankov
Telerik team
answered on 30 Jul 2014, 04:28 PM
Hi Sampath,

Unfortunately, it is not completely clear to me what exactly you would like to achieve. Could you please elaborate a bit more on this?

It seems you want to allow users to upload and download files. If that is the case, you can take a look at the Cordova FileTransfer Api. It provides an API for both upload and download of files. However, the implementation depends strongly on the types of files you want to handle.

I am looking forward to your reply.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
sampath
Top achievements
Rank 1
answered on 04 Aug 2014, 09:43 AM
Thank you for suggestion i got that from tutorials. In friends App when i post any activity it shows avatar image as blank i dont see any option to set avatar image. I checked into code and tried but i'm getting same avatar image.
0
Martin Yankov
Telerik team
answered on 06 Aug 2014, 04:06 PM
Hi Sampath,

The Telerik Friends app does not provide a functionality to add a profile picture or to edit profile. You will need to add a new view in the app for that where the user should be able to:
  1. Choose a picture from the device.
  2. Upload that picture to Backend Services.

You can take a look at the Camera Sample App to see how you can allow the user to choose a picture from the device gallery. You can also view the sample by creating a new project -> Start from Sample project -> Core APIs -> Camera.

To upload the picture to Backend Services, you should use Cordova File Transfer API. You can see an article about how to use the File Transfer plugin with Backend Services here - Uploading Files via FileTransfer.

I hope this information is useful. Let me know if you have any other questions.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder in-browser client
Asked by
sampath
Top achievements
Rank 1
Answers by
Martin Yankov
Telerik team
sampath
Top achievements
Rank 1
Share this question
or