mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Delete IE8 support in the avatar controller
This commit is contained in:
parent
9db189174c
commit
0cb8f74cd1
1 changed files with 0 additions and 5 deletions
|
|
@ -150,14 +150,9 @@ class AvatarController extends Controller {
|
|||
* @return DataResponse
|
||||
*/
|
||||
public function postAvatar($path) {
|
||||
$userId = $this->userSession->getUser()->getUID();
|
||||
$files = $this->request->getUploadedFile('files');
|
||||
|
||||
$headers = [];
|
||||
if ($this->request->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) {
|
||||
// due to upload iframe workaround, need to set content-type to text/plain
|
||||
$headers['Content-Type'] = 'text/plain';
|
||||
}
|
||||
|
||||
if (isset($path)) {
|
||||
$path = stripslashes($path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue