Title: Error: SyntaxError:
Last modified: August 20, 2016

---

# Error: SyntaxError:

 *  [Robsta](https://wordpress.org/support/users/robsta/)
 * (@robsta)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/)
 * Hi there, I get the following error when trying to upload a file.
 * Error: SyntaxError: Syntax error (l.jpg)
 * [http://www.warrior.co.za/uploads/](http://www.warrior.co.za/uploads/)
 * Please could you advise/assist
 * [http://wordpress.org/extend/plugins/jquery-html5-file-upload/](http://wordpress.org/extend/plugins/jquery-html5-file-upload/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Sinash Shajahan](https://wordpress.org/support/users/anwarswabiri/)
 * (@anwarswabiri)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/#post-3584354)
 * Can you please check now… I couldn’t find any issue with the file upload functionality
   in your site
 *  [Sinash Shajahan](https://wordpress.org/support/users/anwarswabiri/)
 * (@anwarswabiri)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/#post-3584679)
 * Robsta, any update on this? Can I consider it as resolved?
 * Thanks
    Anwar
 *  [kuebel](https://wordpress.org/support/users/kuebel/)
 * (@kuebel)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/#post-3584680)
 * If it’s the same error I had, that’s because of a problem of the plugin.
    clearstatcache
   only accepts two parameters from PHP>5.3.0 on.
 * So UploadHandler.php should read:
 *     ```
       protected function get_file_size($file_path, $clear_stat_cache = false) {
               if ($clear_stat_cache) {
                   if (version_compare(PHP_VERSION, '5.3.0') >= 0)
                     clearstatcache(true, $file_path);
                   else
                     clearstatcache();
               }
               return $this->fix_integer_overflow(filesize($file_path));
   
           }
       ```
   
 *  [Sinash Shajahan](https://wordpress.org/support/users/anwarswabiri/)
 * (@anwarswabiri)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/#post-3584685)
 * Good catch Kuebel. will include this fix in the next release
 * Thanks
    Anwar

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error: SyntaxError:’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-html5-file-upload_fdfdfd.svg)
 * [JQuery Html5 File Upload](https://wordpress.org/plugins/jquery-html5-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-html5-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-html5-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-html5-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-html5-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-html5-file-upload/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Sinash Shajahan](https://wordpress.org/support/users/anwarswabiri/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/error-syntaxerror/#post-3584685)
 * Status: not resolved