unclecheese/silverstripe-dropzone

File icons triggering 403 errors

Opened this issue · 0 comments

Uploading a non-image file results in 403 responses for icons:
403 vendor/unclecheese/dropzone/images/file-icons/512px/pdf.png
403 vendor/unclecheese/dropzone/images/file-icons/512px/_blank.png

The call to _blank.png (on error) keeps firing, quickly running into the thousands.

It looks like the FileAttachmentField::ThumbnailsDir() function isn't correctly routing the requests to the public facing /_resources directory.