-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Supported features flags, handling browsers w/ no support for Fine Uploader #680
Comments
I think this is a good idea. I'll also likely provide an API function for FineUploaderBasic mode users. I'll schedule this for 3.4. I already have a lot of items scheduled for 3.4, so it may be pushed into a later release if things get too crazy. |
It would be nice to have a gneral purpose object (maybe in qqUtil?) that represent what features are avaiable, (e.g. resume downloads, drag'n'drop etc...) so it is possible to present users a list of options the can use right now, and options they might can use with a more recent browser... |
@laeubi This is not really possible for all features. However, there are some such utility functions that cover feature support. I'll be sure to keep this in mind when working on this particular case in the next version as well. |
Yeah I see them, It just seems that they evaluate on each call so I just wondered if it would be possible to just calcualte it once and the present this via a general "feature" object, it would then ven be possible to assign messages to feature keys that could be presented to the user ... but thats just an idea that crossed my mind :-) |
@laeubi That's a pretty good idea. I'll keep that in mind when I start work on this case. I may split off your idea into a separate case, but for now, I'll keep it here. Thanks again. |
I'll start looking into this now for 3.5. |
So, my plans here are:
|
This is actually going to be quite tricky to implement. The test required to determine if file input elements are supported requires the existence of the Thoughts? Also, testing support for file input elements requires either access to an IOS5 device (I'm not sure I have access to such a device) or access to an IOS5 simulator. Apple has made it very difficult to run an IOS5 simulator with the latest xcode in Mountain Lion. The only IOS simulator with the latest versions of xcode on mountain lion is 6.x. I'm attempting to download xcode 4.4.1 in hopes of running the IOS 5.1 simulator bundled with that, and we'll see how that works. |
… list, add "unsupported" message when using FU mode when uploading not supported. TODO: Don't wait for window.onload before initializing qq.supportedFeatures.
I was able to run an IOS5 simulator by navigating to the simulator packaged in the xcode 4.4.1 disk image. After eliminating the code that depends on the body tag in my file input support detection code, the lack of file input support was still detected. I will need to confirm that adding the file input element to the DOM is not required to accurately detect lack of file input support on a real IOS5 device though. |
I have completed all planned work on this feature. I still need to run some tests on a real IOS5 device before I merge this into 3.5-IP. A new object containing flags that correspond to features, I also append a |
Tested and confirmed on a real IOS5 device. This has been completed in 3.5-IP. |
I use FineUploader across multiple browsers as an optional file upload component in a larger form system. Some browsers (iOS < 6.0) don't support file uploads.
Would it be possible to add a
unsupportedBrowserMessage
option and behavior when FU is used in a browser which doesn't support<input type="file">
, e.g replace<div>
with unsupported browser message on init?The following offers a simple method for feature detection of file uploads:
Detect browser file input support
The text was updated successfully, but these errors were encountered: