Jump to content


Issue information

  • #035304

  • Fixed

  • 2.5.0

  • 2.5.1

  • 3 - Medium


Issue Confirmations

  • Yes (1)No (0)
Photo

FTP Storage - Files removed on edit

Posted by on 04 January 2012 - 03:56 PM

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.

changed status to: Confirmed - General

Is this for editing or uploading a new version?


editing, uploading a new version is not affected.


changed status to: Fixed
changed fixed-in version to: 2.5.1





0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users