You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20,6 +46,8 @@ In your own controller create the `FileReceiver`, more in example.
20
46
uses **chunked writing** aswell to minimize the memory footprint
21
47
***Storing per Laravel Session to prevent overwrite**
22
48
all TMP files are stored with session token
49
+
*[**Clear command and schedule**](#uploads:clear)
50
+
the package registers the shedule command (uploads:clear) that will clear all unfinished chunk uploads
23
51
24
52
## Basic documentation
25
53
@@ -123,6 +151,19 @@ Add a route to your controller
123
151
Route::post('upload', 'UploadController@upload');
124
152
```
125
153
154
+
### Commands
155
+
156
+
#### uploads:clear
157
+
Clears old chunks from the chunks folder, uses the config to detect which files can be deleted via the last edit time `clear.timestamp`.
158
+
159
+
The scheduler can be disabled by a config `clear.schedule.enabled` or the cron time can be changed in `clear.schedule.cron` (don't forget to setup your scheduler in the cron)
*`getBytesEnd()` - returns the ending bytes for current request
137
178
*`getBytesTotal()` - returns the total bytes for the file
138
179
180
+
## Since v0.2.0
181
+
182
+
The package supports the Laravel Filesystem. Becouse of this, the storage must be withing the app folder `storage/app/` or custom drive (only local) - can be set in the config `storage.disk`.
183
+
184
+
The cloud drive is not supported becouse of the chunked write (probably could be changed to use a stream) and the resulting object - `UploadedFile` that supports only full path.
139
185
140
186
## Todo
141
187
142
188
-[ ] add more providers (like pbupload)
143
189
-[ ] add facade for a quick usage with callback and custom response based on the handler
144
-
-[] cron to delete uncompleted files
145
-
-[x] file per session (to support multiple)
146
-
-[] add a config with custom storage location
190
+
-[x] cron to delete uncompleted files`since v0.2.0`
191
+
-[x] file per session (to support multiple)`since v0.1.1`
192
+
-[x] add a config with custom storage location `since v0.2.0`
147
193
-[ ] add an example project
194
+
-[ ] add support to different drive than a local drive
148
195
149
196
## Contribution
150
197
Are welcome. To add a new provider, just add a new Handler (which extends AbstractHandler), implement the chunk
0 commit comments