Help!

Or search support forum

What's Global Moxie?

Global Moxie specializes in mobile design strategy and user experience for a multiscreen world. We offer consulting services, training, and product-invention workshops to help creative organizations build tapworthy mobile apps and effective websites. We're based in Brooklyn, NY. Learn more.

On Shelves

Books by Josh Clark

Tapworthy: Designing Great iPhone Apps

Best iPhone Apps: The Guide for Discriminating Downloaders

iWork ’09: The Mising Manual

Moxiemail

Enter your e-mail to receive occasional updates:

Error uploading files: "CGI open of tmpfile: Permission denied"

Important: Sales, service, and support of Big Medium are no longer offered. More details.

This FAQ page is for Big Medium 1.x. It does not apply to Big Medium 2.0 or later.

This message is displayed when the web server does not have appropriate permission to any of the default directories where Perl normally tries to save uploaded files. It is most likely to occur on Windows servers and other non-Unix systems, and only occurs when you are uploading a file (a section template or an image file, for example).

The solution

  1. Create a directory named temp in your server's moxiedata directory. In Unix-based systems, you should set this directory's permissions to chmod 777.
  2. Locate the file named bm_lib.pl in the moxiebin directory and open it in a text editor. Locate this block of code at the top of the file:

    BEGIN { eval { require bytes; import bytes; } }
    use strict;
    use String::Multibyte;
    

    Immediately after these three lines, add two new lines:

    $CGITempFile::TMPDIRECTORY = "$bmSetup::MoxieDir/temp";
    $TempFile::TMPDIRECTORY = "$bmSetup::MoxieDir/temp";
    
  3. FTP the revised bm_lib.pl file to your server's moxiebin directory, making sure that your FTP client is set to "plain text" or ASCII mode.

After making these adjustments, the error message should go away and you should now be able to use Big Medium to upload files without problem.

Download Big Medium
Try it free for 30 days, or buy to unlock.

Brains for Sale

“Josh Clark, do you sell your brain so I can constantly tap into it for wisdom? Oh wait, you wrote a book.
—Tim Van Damme, designer

“Whenever I have a question about iPhone design patterns, Tapworthy has an answer, even for little details. The best book you can buy for iPhone design.”
—Catriona Cornett, inspireUX.com

“Great speaker. Josh Clark could make a talk about cleaning a litter box interesting.”
—Aaron Griffith, iPhone developer

More praise for Tapworthy