Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 01:25 pm EST

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 EST. The time is now 01:25 pm.

  • 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