• Resolved delightdigital

    (@delightdigital)


    I’m currently using the following versions:

    EE File Add-on: 1.0.4
    EE: 4.9.31.p
    WP: 4.7.2

    We have the form configured so the file upload is not required. Every time an individual tries to proceed to the next page of the registration, a window pops up stating that there’s an invalid URL and they cannot proceed.

    Is this a compatibility issue with the newest version of WP? How can we resolve this issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I reported this issue one month ago.

    This is what I have discovered since then…

    When I run through the process the file is getting uploaded to the media library folder on the host, but not added to the WP media library.

    Hopefully this gets resolved soon, as there is really not a better option than this plugin.

    Thanks

    Bryan

    Plugin Author wordgeniee

    (@wordgenie)

    Hi
    We have fixed this issue in recent update

    I am still having the issue.

    @delightdigital, did it correct the problem for you?

    Plugin Author wordgeniee

    (@wordgenie)

    @bleblanc , can you share the url of your website?

    I had this issue as well. The below function in the validation strategy file appeared to be where the problem was. The function was not checking for file extensions from the esp_question_allowed_ext table. If you add your extensions manually here everything works fine.

        /**
         * just checks the field isn't blank
         *
         * @param $normalized_value
         * @return bool
         * @throws \EE_Validation_Error
         */
        public function validate($normalized_value)
        {
            if($normalized_value != '')
            {
                $filetype = wp_check_filetype($normalized_value);
                $data = parse_url($normalized_value);
                
                $host = $data['host'];
                $server = $_SERVER['SERVER_NAME'];
                $allowed =  array('gif','png' ,'jpg','jpeg','bmp');
                $extn =  $filetype['ext'];
                if (!in_array($extn, $allowed) || $server != $host) {
                    throw new EE_Validation_Error($this->get_validation_error_message(), 'regex');
                }
                parent::validate($normalized_value);
            }
            else
            {
                return true;
               
            }
        }

    I am not able to get files to upload. When i create the registration field and fill out the form in the front and and also in the admin the file doesn’t upload. i cant find it anywhere and i do not get any errors. I am using WordPress 4.8 with EE4 and newest version of Files addon

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issues Uploading Files in EE 4’ is closed to new replies.