Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Error 403 trying to fetch Uploader generated thumbnails

I'm testing out the Uploader plugin 1.4 under Vanilla 2.1.11 and the uploads are working fine. Thumbnails get created as expected and everything is good. However, When trying to load the thumbnails for display, I get a 403 forbidden error. It looks like a file system permission problem, or something to do with the .htaccess file, but I'm at a lost.

I'm testing the forums locally on Windows, and file permissions are unrestricted. Anyone has some idea?

By the way, if I click on the broken thumbnail image, I can see the full sized picture correctly. It is just the thumbnail that doesn't show.


  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited July 2015

    This depends on the dimensions of the original file because Vanilla processes the images but can't make a thumb of a huge image. Not the weight mind you, it only affects large images by width and height. So the image is uploaded and that is why you can see the original when clicking on the broken thumb. The thumb was not created and therefore it is broken.

    To fix this issue one must alter the core file class.uploadimage.php

  • ozonorojoozonorojo
    edited July 2015

    No, that's not the issue. I was aware of that problem, so I tested small images. The thumbnails are being created and they are in the right location. I can open them in other software, but Apache just denies access and won't serve the files.

    Anyway, the issue is probably unrelated to the plugin and has more to do with server configuration. I'll leave it for now, and hope it will work remotely later.

    Thanks Vrijvlinder for trying to help (as usual).

  • Hi,
    Were able to pin down the issue of these 403 errors?

  • NuxNux New
    edited September 2015

    When uploading images, it generated this:
    instead of this:

    This problem is caused by the following line in class.uploader.plugin.php:
    $Media = array('MediaID' => $MediaID, 'ThumbWidth' => $Width, 'ThumbHeight' => $Height, 'ThumbPath' => $ThumbParsed['SaveName']);
    which should be changed to:
    $Media = array('MediaID' => $MediaID, 'ThumbWidth' => $Width, 'ThumbHeight' => $Height, 'ThumbPath' => $TargetPath);

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I do not have any problems with this plugin.

  • @Nux This is not a problem with this plugin or fileupload. They both work fine on *nix environments.

    There is a bug with uploads on windows in the core:

Sign In or Register to comment.