New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading PDF shows broken image icon #802

Closed
alexroper opened this Issue Jul 9, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@alexroper

alexroper commented Jul 9, 2016

Steps to reproduce

  1. In an Assets field, click "Browse Assets"
  2. Upload a new PDF file or select an existing PDF
  3. Click the "Select" button

Expected behaviour

Field should now show the PDF icon. (<img src="/index.php/resources/cp/img/filetypes/pdf.png">)

Actual behaviour

Field shows a broken image icon instead. (<img src="/index.php/resources/cp/img/filetypes/undefined.png">)

After the entry is saved, the correct PDF icon is displayed.

Server configuration

Operating system:
Mac OS 10.10.5

Web server:
Apache (MAMP)

PHP version:
5.6.10

Statamic version:
2.0.11

Updated from an older Statamic or fresh install:
Fresh install

List of installed addons:
None

Screenshot

pdf thumbnail broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment