Add pdf/word files to zenpage articles & pages

Hello,

I wish to add pdf and MS word/excel/powerpoint files to zenpage articles. The editor only allows me to add images and video. Is there an easy way through the tinyMCE editor to do add these file types??

Thanks

Sbansal

Comments

  • Thanks for the quick reply.

    I have a couple of related questions:

    1. I am not able to upload via the ajax file manager (I get the message - (website name) you are not allowed to upload such file type. I used an ftp client to upload the pdf file into the same folder and it worked flawlessly.

    2. How do I embed the links to these uploaded files into zenpage articles/pages?

    thx
  • figured out how to embed links in zenpage articles. Clicking the link button in the menu opens up a small entry box - there is small button next to "Link url" which gives the option to link to uploaded files.

    However, still not able to upload files via the ajax file manager?
  • acrylian Administrator, Developer
    The ajax file manager uses the default config by its creators that excluded filetypes like pdf and doc. You need to change that yourself. Open the file `zp-core/plugins/tiny_mce/plugins/ajaxfilemanager/inc/config.base.php` and look at the defines around line 78 and 79. Uncomment hte first one and comment out the second.
  • I can now upload pdf files. But there is a new problem.

    I am unable to upload large files (trying a pdf file 3.7 MB) - i get the error message that "the file was not attached". I am able to upload smaller files (tried less than 1 MB and worked). I will need to upload much larger file sizes - 20MB or more in some cases for ppt presentations.

    thx a lot
  • acrylian Administrator, Developer
    Please take the time to read our user guide section..:-): http://www.zenphoto.org/2009/03/troubleshooting-zenpage/#20

    I will change both the upload format support and the upload size for tonight's nightly.
  • Thank you for your help. Awesome work :)
  • arvidtp Member
    huh. The change for extra format support never made it into the actual releases it seems - still had to go in and change this by hand in 1.4.0.4

    FYI the file is now located at `zp-core/zp-extensions/tiny_mce/plugins/ajaxfilemanager/inc/config.base.php`

    cheers,
    Arvid
  • acrylian Administrator, Developer
    What is a mistake is that there are a lot of file formats not allowed that should. But my upload max size is `50 * 1024 & 1024` which was raised as the original value was just `2048 byte`.

    The next nightly ties the upload size now to the ' upload_max_filesize' value told by the server and also allows a wider array of file formats.

    Note you can always use ftp directly as well.
Sign In or Register to comment.