Property | Type | Description | |
---|---|---|---|
$container | Symfony\Component\DependencyInjection\Container |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\DependencyInjection\Container $container ) | ||
delete ( |
||
getStorage ( |
||
getStorageDirectory ( |
Returns the storage directory for a given UploadedFile. | |
replace ( |
Replaces the current file with a new file. | |
replaceFromData ( |
||
replaceFromFilesystem ( |
Replaces the current file with a new file. | |
replaceFromURL ( |
Replaces the file from an URL. Does some tricks to avoid 403 forbidden on some sites, like setting a proper browser identification. | |
replaceFromUploadedFile ( |
Replaces an existing uploaded file with another uploaded file. |
public __construct ( Symfony\Component\DependencyInjection\Container $container ) | ||
$container | Symfony\Component\DependencyInjection\Container |
public delete ( |
||
$file |
public getStorage ( |
||
$file | ||
return | Gaufrette\Filesystem |
public getStorageDirectory ( |
||
$file | The file to get the storage directory for | |
return | string | The storage directory for the type of the given UploadedFile |
public replace ( |
||
$file | The target file | |
$filesystemFile | The source file |
public replaceFromData ( |
||
$file |
public replaceFromFilesystem ( |
||
$file | The target file | |
$filesystemFile | The source file |
public replaceFromURL ( |
||
$file | The target file | |
$url | string | The URL to replace from |
public replaceFromUploadedFile ( |
||
$target | The target file | |
$source | The source file |