Welcome to Geeklog, Anonymous Thursday, September 19 2024 @ 08:32 am EDT

Geeklog Forums

error in upload.class.php


thechadd

Anonymous
For my windows2000 installation, imagemagick was being called wrong with additional ' quotes surrounding it, resulting in a bad file name since this->_getDestinationName() was apparently returning quotes already.

Here is the fixed code that is working for me:
Text Formatted Code

            if ($this->_imageLib == 'imagemagick') {
                $newsize = $newwidth . 'x' . $newheight;
                $cmd = $this->_pathToMogrify . ' -resize '. $newsize . " " . $this->_fileUploadDirectory . '/' . $this->_getDestinationName() . " 2>&1";

 
 Quote

All times are EDT. The time is now 08:32 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content