Skip to content

Commit

Permalink
修复base64上传,格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
haohetao committed Mar 30, 2020
1 parent c7693d2 commit 1a2c7d2
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 492 deletions.
6 changes: 0 additions & 6 deletions src/UploadBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ public function getUploadUrl($attribute)
return null;
}


/**
* Replaces all placeholders in path variable with corresponding values.
*/
Expand All @@ -449,7 +448,6 @@ protected function resolvePath($path)
}, $path);
}


/**
* Saves the uploaded file.
* @param UploadedFile $file the uploaded file instance
Expand Down Expand Up @@ -485,7 +483,6 @@ protected function save($attribute, $file, $path)
return true;
}


/**
* Deletes old file.
* @param string $attribute
Expand All @@ -512,7 +509,6 @@ protected function delete($attribute, $old = false)
}
}


/**
* Get the UploadedFile
* @param string $attribute
Expand Down Expand Up @@ -572,7 +568,6 @@ protected function getUploaddirectory($attribute)
return Yii::getAlias($path);
}


/**
* resolve file name
* @param string $attribute
Expand All @@ -599,7 +594,6 @@ protected function resolveFileName($attribute, $old = false)
return null;
}


/**
* @param UploadedFile $file
* @return string
Expand Down
Loading

0 comments on commit 1a2c7d2

Please sign in to comment.