File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function createFromUploader(
59
59
* @param int $ownerType
60
60
* @param bool $saveAfterUpload Save the file immediately after upload
61
61
* @param bool $protected File is protected?
62
- * @return \rkit\filemanager\models\File
62
+ * @return \rkit\filemanager\models\File|bool
63
63
*/
64
64
public function createFromPath (
65
65
$ path ,
Original file line number Diff line number Diff line change @@ -235,11 +235,14 @@ public static function generateName($extension = null)
235
235
}
236
236
237
237
/**
238
+ * Save file in tmp directory (if `saveAfterUpload` is true then save in the final directory)
239
+ *
238
240
* @param string $tempFile
239
241
* @param bool $saveAfterUpload
240
242
* @param bool $uploaded File has been uploaded or manually created
243
+ * @return \rkit\filemanager\models\File|bool
241
244
*/
242
- public function saveToTmp ($ tempFile , $ saveAfterUpload , $ uploaded = true )
245
+ public function saveToTmp ($ tempFile , $ saveAfterUpload = false , $ uploaded = true )
243
246
{
244
247
if ($ this ->save ()) {
245
248
if (FileHelper::createDirectory ($ this ->dirTmp (true ))) {
You can’t perform that action at this time.
0 commit comments