mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	use Slim/Psr7/Stream
This commit is contained in:
		
							parent
							
								
									2c9e10b88f
								
							
						
					
					
						commit
						d27b762945
					
				|  | @ -1286,7 +1286,7 @@ final class SeedDMS_RestapiController { /* {{{ */ | |||
|                     if(!($fh = @fopen($file, 'rb'))) { | ||||
|                         return $this->renderer->json($response, array('success'=>false, 'message'=>'', 'data'=>''))->withStatus(500); | ||||
|                     } | ||||
|                     $stream = new \Slim\Http\Stream($fh); // create a stream instance for the response body
 | ||||
|                     $stream = new \Slim\Psr7\Stream($fh); // create a stream instance for the response body
 | ||||
| 
 | ||||
|                     return $response->withHeader('Content-Type', $lc->getMimeType()) | ||||
|                         ->withHeader('Content-Description', 'File Transfer') | ||||
|  | @ -1362,7 +1362,7 @@ final class SeedDMS_RestapiController { /* {{{ */ | |||
|                     if(!($fh = @fopen($file, 'rb'))) { | ||||
|                         return $this->renderer->json($response, array('success'=>false, 'message'=>'', 'data'=>''))->withStatus(500); | ||||
|                     } | ||||
|                     $stream = new \Slim\Http\Stream($fh); // create a stream instance for the response body
 | ||||
|                     $stream = new \Slim\Psr7\Stream($fh); // create a stream instance for the response body
 | ||||
| 
 | ||||
|                     return $response->withHeader('Content-Type', $lc->getMimeType()) | ||||
|                         ->withHeader('Content-Description', 'File Transfer') | ||||
|  | @ -1467,7 +1467,7 @@ final class SeedDMS_RestapiController { /* {{{ */ | |||
|                     if(!($fh = @fopen($file, 'rb'))) { | ||||
|                         return $this->renderer->json($response, array('success'=>false, 'message'=>'', 'data'=>''))->withStatus(500); | ||||
|                     } | ||||
|                     $stream = new \Slim\Http\Stream($fh); // create a stream instance for the response body
 | ||||
|                     $stream = new \Slim\Psr7\Stream($fh); // create a stream instance for the response body
 | ||||
| 
 | ||||
|                     return $response->withHeader('Content-Type', $lc->getMimeType()) | ||||
|                           ->withHeader('Content-Description', 'File Transfer') | ||||
|  | @ -1613,7 +1613,7 @@ final class SeedDMS_RestapiController { /* {{{ */ | |||
|                 if(!($fh = @fopen($file, 'rb'))) { | ||||
|                   return $this->renderer->json($response, array('success'=>false, 'message'=>'', 'data'=>''))->withStatus(500); | ||||
|                 } | ||||
|                 $stream = new \Slim\Http\Stream($fh); // create a stream instance for the response body
 | ||||
|                 $stream = new \Slim\Psr7\Stream($fh); // create a stream instance for the response body
 | ||||
| 
 | ||||
|                 return $response->withHeader('Content-Type', 'image/png') | ||||
|                       ->withHeader('Content-Description', 'File Transfer') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann