FTP Storage - Files removed on edit > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

FTP Storage - Files removed on edit

wersja drukowalna wersja Microsoft Word wersja HTML

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.

śro, 04 styczeń 2012

Komentarze:

Brak komentarzy

Imię/Nick:

Adres email:

Strona WWW:

Treść Komentarza: