• I am running into a problem uploading from a Nexus 5, and Nexus 6 running Android 5.1.1

    Mobile output after attempting to attach any file from gallery (img or video) or from camera directly:
    http://d.pr/i/OIom

    Very simple use case uploading from phone to form. Stock upload gravityform uploader works…just very bad ux.

    The advanced uploader also works from a desktop uploading the same file extension no issues.

    Where should I start to look for debugging.

    Thanks.

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ben.moody

    (@benmoody)

    I think this is due to the fact that the mime type returned on android is a little different than desktop browsers.

    Plupload filters files via extensions provided to it from the plugin options.

    The plugin options are passed to plupload script via the localized object:

    PrsoPluploadVars.filters.files

    An example of this param being set:

    line 49 init_plupload_queue.js

    I’m not sure what extension would be returned by the os, you’d assume it would remain mp4, but even a slight change in the output, adding a . in front for example would cause a validation issue

    As noted the uploader script is:

    http://www.plupload.com/docs/

    If you find a solution let me know but i’m pretty sure you should start by trying to find how the mime type is interpreted by the os and browser being used

    Thread Starter i3inary

    (@i3inary)

    Ok connected to remote debugging:
    https://developers.google.com/web/tools/setup/remote-debugging/remote-debugging

    Found that I did not properly purge my cache after making plugin changes. Easy to notice this if you switch widget ui and params not updated from my settings screen changes.

    I then cleared all caches again a few times.

    Things started uploading. I was able to upload the file no problem so the culprit was that the params were caching for some reason on my phone even in incognito tabs.

    Moral of the story is quadruple check cache is cleared.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: Invalid file extension’ is closed to new replies.