Bug on IMFS function...

Last post 04-28-2008 11:05 PM by CrazyMerlin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-26-2008 3:30 PM

    • mmania
    • Top 10 Contributor
    • Joined on 01-20-2008
    • Netherlands
    • Posts 91

    Bug on IMFS function...

    folders containing spaces in the names do not show their content in the Filesystem application in PHP

    the issue was the missing urlencode for the $folderPath variable

    ciao Luca

     

        public function ListFolder($sessionToken, $folderPath, $pageNumber, $pageSize, $sortCode, $sortDescending)
        {
            global $DEBUG;
            global $IMFSHOST;
           

            // Set the parameters
            $params = 'sessionToken=' . $sessionToken . '&';
            $params = $params . 'folderPath=' . urlencode($folderPath) . '&';
            $params = $params . 'pageNumber=' . $pageNumber . '&';
            $params = $params . 'pageSize=' . $pageSize . '&';
            $params = $params . 'sortCode=' . $sortCode . '&';
            $params = $params . 'sortDescending=' . $sortDescending;

            // retrieve from the REST interface the response xml.
            $xmlstring = curlGet($IMFSHOST . '/ws/IMFS/listfolder.ashx?' . $params);
           
            if ($DEBUG)
            {
                print '<!--ListFolder: ';
                print_r($xmlstring);
                print '-->';
            }
           
            // turn into an object for easier handling.
            $xml = new SimpleXMLElement($xmlstring);
           
            return $xml;
        }

     

     

     

     

     

    Filed under: , , ,
  • 04-09-2008 7:16 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 602

    Re: Bug on IMFS function...

     Thank you for this bug fix.  We have several encoding issues in the application that need to be resolved.

    Regards,
         Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 04-28-2008 11:05 PM In reply to

    Re: Bug on IMFS function...

    Thanks, this helped me with an uploading issue where I was forgetting to encode the media file name.

     

    //erlin! 

    Life is a PHP script in need of debugging!
Page 1 of 1 (3 items)