Can't upload pdfs

  • Hi

    Recently my client hasn't been able to upload pdfs, image files are fine it's just pdfs and word docs. finfo is enabled on the server so I don't think it's that. I got in touch with my host and they said that there was an error message

    PHP Warning: escapeshellcmd() has been disabled for security reasons in /public_html/perch/core/lib/PerchAuthenticatedUser.class.php on line 135

    They have disabled escapeshellcmd() on the server for security reasons. Is this the reason pdfs now won't upload? If so is there any workaround for this?

    Any help is much appreciated.


  • drewm

    Approved the thread.
  • It doesn't really make much sense to disable escapeshellcmd for security reasons, as we're using it for security reasons. But anyway, that's not the cause of your problem.

    When you say "my client hasn't been able to upload pdfs" - what are you actually seeing when you try?

  • Ah ok.

    So when adding a pdf asset via a region I either drag and drop the pdf file into the upload box or use the choose file method. Rather than uploading to the asset list it just refreshes but without the uploaded pdf. I've tried adding a pdf via the assets area as well and it's the same thing, once I click submit the page refreshes, but the pdf isn't added to the assets list.

  • Here's some of the diagnostics. The size of file I'm uploading is 1.9mb

    GD: Yes

    ImageMagick: No

    PHP max upload size: 512M

    PHP max form post size: 512M

    PHP memory limit: 256M

    Total max uploadable file size: 256M

    Resource folder writeable: Yes

    Session timeout: 24 minutes

    Native JSON: Yes

    Filter functions: Yes

    Transliteration functions: Yes