ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

File upload - cannot select certain files

September 26, 2008 1:22pm

Subscribe [2]
  • #1 / Sep 26, 2008 1:22pm

    tantau

    35 posts

    When I try to upload a file in a blog via the admin panel. I cannot select Apple Keynote files. Word, Excel are both selectable and can be uploaded, but Keynote is not. Is there a place in the panel that allows me to specify what files can be uploaded, or do aI have to handle these files via FTP?

    Neal

  • #2 / Sep 26, 2008 1:29pm

    Greg Aker

    6022 posts

    Neal:

    Try adding that file extension & mime type to /system/lib/mime.php

    -greg

  • #3 / Sep 26, 2008 1:40pm

    tantau

    35 posts

    Great idea, but no go. Here’s what I entered into mimes.php, just after XLS. Also, Keynote is presentation software, like Powerpoint.

    $mimes = array(
                        'psd'    =>    'application/octet-stream',
                        'pdf'    =>    'application/pdf',
                        'swf'    =>    'application/x-shockwave-flash',
                        'sit'    =>    'application/x-stuffit',
                        'tar'    =>    'application/x-tar',
                        'tgz'    =>    'application/x-tar',
                        'zip'    =>    'application/zip',
                        'gzip'    =>    'application/x-gzip',
                        'bmp'    =>    'image/bmp',
                        'gif'    =>    'image/gif',
                        'jpeg'    =>    'image/jpeg',
                        'jpg'    =>    'image/jpeg',
                        'jpe'    =>    'image/jpeg',
                        'png'    =>    'image/png',
                        'txt'    =>    'text/plain',
                        'html'    =>    'text/html',
                        'doc'    =>    'application/msword',
                        'docx'    =>    'application/msword',
                        'xl'    =>    'application/excel',
                        'xls'    =>    'application/excel',
                        'key'    =>    'application/keynote',
                        'mov'    =>    'video/quicktime',
                        'qt'    =>    'video/quicktime',
                        'mpg'    =>    'video/mpeg',
                        'mpeg'    =>    'video/mpeg',
                        'mp3'    =>    'audio/mpeg',
                        'aiff'    =>    'audio/x-aiff',
                        'aif'    =>    'audio/x-aiff',
                        'aac'    =>    'audio/aac'
                    );
  • #4 / Sep 26, 2008 2:25pm

    Mark Bowen

    12637 posts

    Tantau,

    When you say you can’t select them do you mean that they are greyed out or do you mean that you can’t upload them.

    If the files are greyed out and un-selectable then what browser are you running and are you running any extensions on that browser?

    Best wishes,

    Mark

  • #5 / Sep 26, 2008 2:29pm

    tantau

    35 posts

    Hi, Mark.

    The files are grayed out. There is a Word doc in the same folder on my computer as the Keynote files that I CAN select and upload.

    I am running Safari 3.x and have been able to upload many other files prior to attempting the Keynote files.

    Addiionally, I’ve tried the built in file upload app as well as an extension upload app called (I think) FILES.

  • #6 / Sep 26, 2008 2:41pm

    Mark Bowen

    12637 posts

    Hiya,

    Yup I thought that’s what you meant by not able to select 😉

    You shouldn’t really have any problems with selecting any type of file at all. Are you just using the standard upload form in the admin panel? If so then you should be able to select absolutely any file type whatsoever as this is just using a standard file chooser dialogue. Do you have any add-ons for Safari at all that might be causing this or any add-ons such as Default Folder or something of that nature that affects the system itself which might be causing this. I just saved a keynote file and had no problems selecting it. Whether or not it would have uploaded I’m not sure as I don’t have the file-type added in the allowed types but I can definitely select it for upload.

    Have you tried using another browser and seeing if you have the same problem? If so then I would tend to speculate that this is something installed on your system that is causing this problem and not ExpressionEngine.

    Hope that helps.

    Best wishes,

    Mark

  • #7 / Sep 26, 2008 2:44pm

    Greg Aker

    6022 posts

    tantau:

    I haven’t worked in Keynote before, however I ran across this post on the Apple website.

    That being said, I’ll do some more checking & report back.

    -greg

    Edit:  Fixed the link

  • #8 / Sep 26, 2008 2:46pm

    Mark Bowen

    12637 posts

    tantau:

    I haven’t worked in Keynote before, however I ran across this post on the Apple website.

    That being said, I’ll do some more checking & report back.

    -greg

    Is that the correct link Greg? Not sure what that has to do with the file uploads?

  • #9 / Sep 26, 2008 2:55pm

    Lisa Wess

    20502 posts

    The thread Greg pointed to mentioned that the Keynote information is a folder, not a file. That would explain why it’s greyed out (this has nothing to do with ExpressionEngine, by the way).  You could try zipping up that folder and attaching it, though. =)

  • #10 / Sep 26, 2008 3:00pm

    tantau

    35 posts

    Fantastic idea, Lisa. I’ll try that. It may be the only way to get it to work.

    Neal

    EDIT: It works. I think that’s the way to do it. Thanks for your help everyone!

  • #11 / Sep 26, 2008 3:04pm

    Lisa Wess

    20502 posts

    Glad you got it all working, tantau!  =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases