Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Styling issue for file upload in form #2426

Closed
kurteknikk opened this issue Sep 11, 2011 · 8 comments
Closed

Styling issue for file upload in form #2426

kurteknikk opened this issue Sep 11, 2011 · 8 comments

Comments

@kurteknikk
Copy link

In a very simple form i try to include a file upload input box but jqm fails to style it well.

See: http://spot1.spotmaster.com/dev/live/jqm_form.php for more information, thanks.

@toddparker
Copy link
Contributor

We don't style a file input for a number of reasons. First, some mobile platforms don't support this type of input (namely iOS). Second, it's very hard to style because of security features built into browsers. For now, we're not going to style these but feel free to add this issue to the feature request wiki page and we'll take a look post 1.0.

@dipold
Copy link

dipold commented Feb 17, 2012

Do exec $('input[type="file"]').textinput({theme: 'c'});

It is not perfect but better than nothing

@kurteknikk
Copy link
Author

Yeah it would have been better to have it styled from jquery mobile, but it works thanks :)

@toddparker
Copy link
Contributor

@dipold - When you apply the textinput plugin to file inputs, does it style it consistently across platforms? I assumed it wouldn't be that simple based on our experience in the past. Might look better on a few platforms though.

@dipold
Copy link

dipold commented Feb 19, 2012

Thanks @toddparker

But as I said better than nothing.
I, for example, use JQM for backend webpages to desktop access because the JQM is very simply, beautiful interface and practical (I use to webapps and mobile web pages too).
I read yours reasons but I have seen many ask for this feature then the JQM team should consider the style it in a future.

Kind regards,

@ghost
Copy link

ghost commented Oct 19, 2012

Now that iOS 6 supports file upload and Android and BB for quite some time, it would be great to have a styling option for this type of input.

@toddparker
Copy link
Contributor

We recently landed this feature for 1.3. See the input page for an example:
http://jquerymobile.com/test/docs/forms/textinputs/

@ghost
Copy link

ghost commented Oct 19, 2012

Awesome, thanks in advance!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants