FOSSology  4.4.0
Open Source License Compliance by Open Source Software
HelperToUploadFilePage.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2019 Siemens AG
4  Author: Gaurav Mishra <mishra.gaurav@siemens.com>
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
14 
16 use Symfony\Component\HttpFoundation\Request;
17 
23 {
24 
32  public function handleRequest(Request $request)
33  {
34  $response = $this->handleUpload($request);
35  if ($response[0]) {
36  $response[3] = $response[3][0];
37  }
38  return $response;
39  }
40 }
Upload a file from the users computer using the UI.
handleUpload(Request $request)
Process the upload request.