• Hello,

    A lot of my users are complaining that its difficult to upload images from their android phone and this problem usually occurs with images taken with the android phones camera, but if the image file is selected from any another folder it will upload perfetly. Only images in the camera folder cannot be uploaded.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Can you send some more details? what does happen when the users are trying to upload their images?

    Thread Starter teeboy4real

    (@teeboy4real)

    see video at https://youtu.be/v-e0QsK0QXs

    Please not that only images selected in the camera folder are not uploading, all other images located in other folders are uploading successfully. Also note that my max upload limit is set at 20MB.

    Plugin Author Greg Winiarski

    (@gwin)

    Thanks for the video, usually when this happens it is because there is not enough memory on the phone itself.

    Can you replicate this problem on the demo site here https://demo.wpadverts.com/lite/adverts/add/

    Also please note that your website shows 21 JavaScript errors in the developer console so it would be best to start with fixing those problems to make sure there isn’t some JavaScript error preventing the upload from working properly.

    Thread Starter teeboy4real

    (@teeboy4real)

    Hello,

    The same issue occured at the demo site here https://demo.wpadverts.com/lite/adverts/add/ while using my android browser. I used both chrome and firefox android browser for the demo site and it will not accept any image in the CAMERA FOLDER but its accepting images in all other folders.

    Also if my phone memory was full then images in other folders should not upload. The issue is with images located in the CAMERA folder of the phone.

    I also tried using another friends phone and the issue still occured.

    Thread Starter teeboy4real

    (@teeboy4real)

    I also found out this issue also occurs with trying to upload images directly via camera usage that is upload images directly using phone camera upload process instead of selecting image file from a folder.

    Plugin Author Greg Winiarski

    (@gwin)

    I am able to replicate it only with files over 2MB, which is the file size limit on the demo site.

    You wrote that you have the file size limit set to 20MB, but do you have this limit in WPAdverts Custom Fields when editing the Gallery or for WordPress as well?

    You should have it for both the WPAdverts CF and WordPress.

    Thread Starter teeboy4real

    (@teeboy4real)

    I changed both WPAdverts CF and WordPress max upload file size limit to both 16MB but the issue still persists

    Plugin Author Greg Winiarski

    (@gwin)

    Try adding the code below in your theme functions.php file, this seems to fix this issue for me

    
    add_filter( "adverts_plupload_default_settings", function( $init ) {
        unset( $init["max_file_size"] );
        return $init;
    });
    
    Thread Starter teeboy4real

    (@teeboy4real)

    YES YES YES, this fix the problem images are being uploaded now, but ill like to know what that code does, also I believe other WP Adverts users might be facing this same issue. Why not add this fix to the WP Adverts core plugin as an update.

    Thanks

    Plugin Author Greg Winiarski

    (@gwin)

    This code removes the file upload limit derived from the WordPress settings.

    I will remove it in the next WPAdverts release as well.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Android image upload problem’ is closed to new replies.