Comments (5)
Ionic doesn't have a component for file uploads since you typically can't use them on mobile devices.
from autoform-ionic.
ok cool. Thanks @nickw
from autoform-ionic.
@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.
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.
oh great! thanks for the camera package. using it now.
from autoform-ionic.
Related Issues (16)
- Update AutoForm dependency HOT 7
- How to set state of Toggle HOT 1
- Compatibility with Aldeed Autoform 5.1.1? HOT 5
- TypeError: Cannot read property 'slice' of null for Object.autoFormGetSchemaForField [as getLabelForField] HOT 6
- Range / Slider type HOT 1
- Is it possible to trigger a modal when an input is selected? HOT 4
- Hooks error: Uncaught ReferenceError: AutoForm is not defined HOT 1
- publish ver 0.1.6 to atmosphere HOT 10
- label=false no longer works
- Need to add classes to input divs HOT 4
- Checkbox is not working on ionic template. HOT 3
- Multiple select with options HOT 2
- 'label-type': 'stacked' not displaying correctly HOT 1
- label=false breaks validation messages
- Getting black fill around register/sign in button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoform-ionic.