Giter Site home page Giter Site logo

Adding file-upload about autoform-ionic HOT 5 CLOSED

meteoric avatar meteoric commented on August 17, 2024
Adding file-upload

from autoform-ionic.

Comments (5)

nickw avatar nickw commented on August 17, 2024

Ionic doesn't have a component for file uploads since you typically can't use them on mobile devices.

from autoform-ionic.

krishnaff avatar krishnaff commented on August 17, 2024

ok cool. Thanks @nickw

from autoform-ionic.

krishnaff avatar krishnaff commented on August 17, 2024

@nickw
Hi Nick,
Any pointers on how to go about adding an avatar-upload field to the ionic-autoform?
Earlier I asked about file-upload, but I should have been more specific.

Ideally something like the circular avatars in the meteoric-contacts demo app.
First we show an empty image-placeholder, clicking on which opens the device camera to capture a photo. Then we show a preview of the avatar image added.

I was able to do this without using meteoric/ionic (by using the standard cordova-camera plugin)
But just couldn't figure out how to integrate that into the ionic-autoform.
Thanks.

from autoform-ionic.

nickw avatar nickw commented on August 17, 2024

From an autoform perspective you'd probably just want to make the imageURL attribute a hidden field, and then populate it manually after a user uploads an image. The rest of it should be pretty standard. I have an ionic fork of the camera package if you're interested: https://github.com/meteoric/camera

from autoform-ionic.

krishnaff avatar krishnaff commented on August 17, 2024

oh great! thanks for the camera package. using it now.

from autoform-ionic.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.