« Windows path name included in thumbnail URL | Movable Type Index

***DISCLAIMER***
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.

Error uploading files to Movable Type

(Article ID: 000916)
Summary

When hosting Movable Type 2.661 on an NT-based server and a user attempts to upload a file using Movable Type's upload features, one of the following error messages is returned:
Got an error: CGI open of tmpfile: Permission Denied
Got an error: CGI open of tmpfile: No such file or directory

Step-by-step instructions

To fix this error, do the following:

  1. Navigate to the directory where Movable Type is installed.
  2. Open the directory extlib.
  3. Open the file CGI.pm in a text editor (WordPad...not Notepad).
  4. Click Edit>Find.
  5. Type TMPDIRECTORY and press ENTER.
    NOTE: The line of interest is:
    # $CGITempFile::TMPDIRECTORY = '/usr/tmp';
  6. Remove the # from the beginning of the string.
  7. Change the directory path between the single quotes to point to the temporary directory you wish to use.
    NOTE: At the time of this writing, the /usr part of the directory was taken away and a directory called tmp was created in the root of the system drive.
  8. Save the changes to the file and close the text editor.
    NOTE: If WordPad is used, a notice saying "You are about to save the document in a Text-Only format, which will remove all formatting. Are you sure you want to do this?" Click Yes.
  9. Navigate to the location where you want the new temporary directory to reside and create it.
  10. Right click on the new directory and select Properties.
  11. Click on the Security tab.
  12. Click on Add.
  13. Select the Internet Guest Account and click Add.
    NOTE: The Internet Guest Account starts with IUSR_ and ends with the NetBIOS name of the computer or domain.
  14. Click OK.
  15. Grant the user Modify permissions and click OK.

***DISCLAIMER***
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.
***DISCLAIMER***
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.