Menu

Can't upload a file

Help
Don
2004-09-17
2012-10-11
  • Don

    Don - 2004-09-17

    I've activate the upload.php. After selecting the file and push the button upload, the following error message appears.
    Does anyone know how to solve this problem ?

    Fatal PhpWiki Error

    d:\program files\apache group\apache\htdocs\phpwiki\lib\Request.php (In template 'browse') (In template 'body') (In template 'html'):590: Fatal[256]: Uploaded tmpfile illegal: D:\PHP4\uploadtemp/C:WINDOWSTEMPphp26.tmp != C:WINDOWSTEMPphp26.tmp

     
    • Don

      Don - 2004-09-17

      I've Checked the php.ini for upload rights. I think the are OK.

      So now what?

      ;;;;;;;;;;;;;;;;
      ; File Uploads ;
      ;;;;;;;;;;;;;;;;

      ; Whether to allow HTTP file uploads.
      file_uploads = On

      ; Temporary directory for HTTP uploaded files (will use system default if not
      ; specified).
      upload_tmp_dir = D:\PHP4\uploadtemp  ; temporary directory for HTTP uploaded files (will use system default if not specified)

      ; Maximum allowed size for uploaded files.
      upload_max_filesize = 2M

       
      • Reini Urban

        Reini Urban - 2004-09-17

        No this is not okay, PHP bug on windows.

        disable upload_tmp_dir in php.ini
        or set the TEMP env var to the same dir.

         
    • Don

      Don - 2004-09-23

      Tried both options, but it doesn't work.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.