How to add upload File or Image in friends app

4 posts, 0 answers
  1. sampath
    sampath avatar
    1 posts
    Member since:
    Feb 2013

    Posted 26 Jul 2014 Link to this post

    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.
  2. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 30 Jul 2014 Link to this post

    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.

     
  3. sampath
    sampath avatar
    9 posts
    Member since:
    Jul 2014

    Posted 04 Aug 2014 Link to this post

    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.
  4. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 06 Aug 2014 Link to this post

    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.

     
Back to Top