The MU forums have moved to WordPress.org

Powerpoint opens in Word (13 posts)

  1. tvictory
    Member
    Posted 16 years ago #

    I am able to upload powerpoint files to the blog with no problem. The problem is that when I try to open the file from the blog site, it tries to open it in Word?

    I looked at the functions.php and the ppt extension is there and is associated with powerpoint...???

    Any ideas on how to get a powerpoint link to work. All I want them to be able to do is download the file.

    As always, thanks for your help.

  2. dgilmour
    Member
    Posted 16 years ago #

    Once you've uploaded the PowerPoint file and done "Send to Editor" your post will include a link URL which points to the .ppt file.

    How the file extension, such as .ppt, is handled by your browser is a local PC setting. In Firefox, for example, you can change these actions under Tools / Options / File Types / Manage.

  3. theapparatus
    Member
    Posted 16 years ago #

    Providing a link to this so we can see it as well would be a plus as someone here might see something you're missing. (The debugging script linked to in the readme file mentions that just for reference.)

  4. tvictory
    Member
    Posted 16 years ago #

    Here is an example of what is happening. It does not matter what computer I am on, it happens on all of them.

    http://blogs.kusd.org/victory/

    Even if I right click and try to download the file that way, it thinks it is a word document???

  5. theapparatus
    Member
    Posted 16 years ago #

    Hmm, it does. If you save it to your desktop and then try to open it, it does open as a powerpoint file.

    Silly dumb question. Have you tried it with a lower case extention? I'm wondering if mu isn't seeing it as such since it's uppercase. I doubt it but I'll try anything.

  6. suleiman
    Member
    Posted 16 years ago #

    are you running any plugins that try to intercept word files?

  7. tvictory
    Member
    Posted 16 years ago #

    The only plugin we run is the backup plugin :-(

    The files are indeed ppt files. After I download the file, if I change the extension to ppt (It changes it to doc), it open as a powerpoint just fine!

    Wierd

  8. tvictory
    Member
    Posted 16 years ago #

    Here is a copy of what it says in the functions.php file. The only Office documents that seem to be opening up correctly are the ones done in Word. All of the others seem to think that they are Word. If you change the extension on the file when you save it, it opens up correctly. AAGFHHHGG

    I hope that this will help give us an answer as to why this is happening...

    function wp_check_filetype($filename, $mimes = null) {
    // Accepted MIME types are set here as PCRE unless provided.
    $mimes = is_array($mimes) ? $mimes : apply_filters('upload_mimes', array (
    'jpg|jpeg|jpe' => 'image/jpeg',
    'gif' => 'image/gif',
    'png' => 'image/png',
    'bmp' => 'image/bmp',
    'tif|tiff' => 'image/tiff',
    'ico' => 'image/x-icon',
    'asf|asx|wax|wmv|wmx' => 'video/asf',
    'avi' => 'video/avi',
    'mov|qt' => 'video/quicktime',
    'mpeg|mpg|mpe' => 'video/mpeg',
    'txt|c|cc|h' => 'text/plain',
    'rtx' => 'text/richtext',
    'css' => 'text/css',
    'htm|html' => 'text/html',
    'mp3|mp4' => 'audio/mpeg',
    'ra|ram' => 'audio/x-realaudio',
    'wav' => 'audio/wav',
    'ogg' => 'audio/ogg',
    'mid|midi' => 'audio/midi',
    'wma' => 'audio/wma',
    'rtf' => 'application/rtf',
    'js' => 'application/javascript',
    'pdf' => 'application/pdf',
    'doc|docx' => 'application/msword',
    'pub' => 'application/mspublisher',
    'pot|pps|ppt' => 'application/mspowerpoint',
    'wri' => 'application/vnd.ms-write',
    'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
    'mdb' => 'application/vnd.ms-access',
    'mpp' => 'application/vnd.ms-project',
    'swf' => 'application/x-shockwave-flash',
    'class' => 'application/java',
    'tar' => 'application/x-tar',
    'zip' => 'application/zip',
    'gz|gzip' => 'application/x-gzip',
    'exe' => 'application/x-msdownload'
    ));

    I am not sure what the vnd stands for that is in front of the office programs.

  9. julient
    Member
    Posted 16 years ago #

    Hello tvictory

    I have exactly the same problem. I know this won't help you much now. But hey you're not alone anymore ;-)
    Hope we'll find a quick solution !

    Julien

  10. julient
    Member
    Posted 16 years ago #

    Ok here's an update :

    I have a development server. Everything works fine on it. So I try to switch files one by one to find the trouble.
    The problem doesn't seem to come from upload.js, upload-functions.php and upload.php.

    Is there any metadata that need to be provided so that browsers understand that an excel file has to be open with Excel and not with Word ?

    Julien

  11. shinji251184
    Member
    Posted 16 years ago #

    Maybe it depends on your MU version.
    I read on this site :
    http://wordpress.nazgul.nu/2007/09/16/new-in-23-unfiltered-upload/
    that filters appeared due to security reasons.
    I don't think it will work modifying .htacess by adding "AddType application/msexcel xls".

  12. julient
    Member
    Posted 16 years ago #

    Thanks for the link shinji251184.

    Actually, I don't have any problem uploading files. But when the post is published, the browser tries to open it with Word even if it's an excel or a powerpoint file...

  13. tvictory
    Member
    Posted 16 years ago #

    Julient...

    What system are you running. We have a LAMP box going with CentOS.

    I just built a new development machine to see if I can replicate the problem. I will let you know how it goes.

About this Topic

  • Started 16 years ago by tvictory
  • Latest reply from tvictory