File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ $uri = Storage::store($file, new OpenstackStorage)
6868
6969#### Retrieve a file
7070
71- We've store a file, now we want to retrieve it from the storage mechanism.
71+ We stored a file, now we want to retrieve it from the storage mechanism.
7272
7373For this, we will use the ` fileDescriptor() ` method declared on ` StorageInterface ` , and wich is implemented by each storage driver.
7474
@@ -85,3 +85,19 @@ $contents = $descriptor->contents();
8585$mime = $descriptor->mime();
8686
8787````
88+
89+ #### Delivering a file though http
90+
91+ To get an http url for accessing a file, you may use an implementation of ` DeliveryInterface ` .
92+
93+ Until now, there is an implementation for file stored with ` FilesystemStorage ` driver.
94+
95+ ```` php
96+ use Softservlet\FileManager\Deliver\LocalHttpDelivery;
97+
98+ $file = new GenericFile($uri);
99+
100+ $delivery = new LocalHttpDelivery();
101+
102+ $url = $delivery->httpUrl($file);
103+ ````
You can’t perform that action at this time.
0 commit comments