FTP Storage - Files removed on edit > nEwZ - sCRiPTz-TEAM.iNFO

Canal Rss Canal Rss
Canal Atom Canal Atom 

FTP Storage - Files removed on edit

Category: IPS Tracker - Download Manager (for IP.Board)
Viewed: 12 times
Printerfriendly version version of Microsoft Word HTML version

If using ftp storage, when you edit an existing download, the existing files are removed. On saving, the storage engine attempts to upload the file from the local /downloads directory but fails as the file does not exist;

       	 try
            {
                if( $r['record_type'] == 'ss' )
                {
                    $this->connection->chdir( $this->settings['idm_remotesspath'] );
                    $this->connection->upload( $this->image_path . "/" . $r['record_location'], $newLocation );
                }
                else
                {
                    $this->connection->chdir( $this->settings['idm_remotefilepath'] );
                    $this->connection->upload( $this->file_path . "/" . $r['record_location'], $newLocation );
                }
            }
            catch( Exception $e )
            {
                var_dump($this->settings['idm_remotefilepath'], $r['record_location'], $e); exit;
                return false;
            }

Might need to grab me on AIM for this one.

Thu, 05 January 2012