ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.14k stars 13.5k forks source link

Feature Request: File Input component #6628

Closed gfviegas closed 7 years ago

gfviegas commented 8 years ago

As described in this thread, would be nice to have a well designed and pretty file input component.

Would have a more native feel.. Also would be great to have stuff like image preview, assync upload (fire a method when input changes), extension validation, etc...

Suggestions?

jgw96 commented 8 years ago

Hello @gfviegas ! Thanks for opening this feature request with us. Good idea, it is definitely something to consider. Ill keep you updated on the status of this. Thanks for using Ionic!

pjsb commented 8 years ago

Looking also for a possible solution: http://pjsdev.blogspot.de/2016/05/ionic-2-beta-6-angular-2-styled-upload.html

gfviegas commented 8 years ago

Nice work @pjsb . It's missing some stuff like form support, validation and stuff but it's definitely a good start!

Maybe we can work together to implement your component with extra stuff in ionic? I don't have the confidence and enough knowledge to do it so as I'm still learning TS/ES6.

pjsb commented 8 years ago

Yes as I said it is more a very basic draft than a final solution. What about the idea creating github repository, where we can work together and maybe other contributors?

gfviegas commented 8 years ago

Sounds good!

pjsb commented 8 years ago

I have created a little repository, but with quick and dirty non working code, will fix it today, then push my results. Should I add you as contributor? Or do you prefer an own Fork and Pull requests.

webprofusion-chrisc commented 8 years ago

On a slight tangent, here is some code I've been doing recently to do image previews/rotation before upload. Currently this submits the upload as a base64 POST.

https://github.com/openchargemap/ocm-labs/blob/master/App/Ionic2/ocm-app/app/pages/mediaupload/mediaupload.ts

pjsb commented 8 years ago

I will commit my current solution at the end of day, the first commit was just the first Idea ;)

jgw96 commented 7 years ago

Hello everyone! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

jgw96 commented 7 years ago

This issue was moved to driftyco/ionic-feature-requests#36

RafaelMSalvador commented 7 years ago

Hi @jgw96! Link not working...

vkniazeu commented 7 years ago

Most likely, the ionic-feature-requests is a private repository and we can't see it.

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.