Skip to content

Commit ab53a76

Browse files
authored
Merge pull request #60 from Brightspace/rmartin/removeupload
removing support for file uploads
2 parents 1f3d41a + be80638 commit ab53a76

5 files changed

Lines changed: 111 additions & 135 deletions

File tree

package-lock.json

Lines changed: 97 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"cdk": "cdk"
1111
},
1212
"dependencies": {
13-
"aws-cdk": "^2.162.1",
14-
"aws-cdk-lib": "^2.162.1",
13+
"aws-cdk": "^2.1121.0",
14+
"aws-cdk-lib": "^2.254.0",
1515
"ts-node": "^10.9.2",
1616
"typescript": "~5.3.3"
1717
},

src/doRequest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@
4949
}
5050
}
5151

52-
if(isset($_FILES['fileInput'])) {
53-
$uploaddir = 'uploads\\';
54-
$uploadfile = $uploaddir . basename($_FILES['fileInput']['name']);
55-
if (move_uploaded_file($_FILES['fileInput']['tmp_name'], $uploadfile)) {
56-
$fileName = $_POST['fileName'];
57-
$data = array($fileName =>'@'. $uploadfile);
58-
}
59-
}
60-
6152
$authContextFactory = new D2LAppContextFactory();
6253
$authContext = $authContextFactory->createSecurityContext($appId, $appKey);
6354
$hostSpec = new D2LHostSpec($host, $port, $scheme);
@@ -129,10 +120,6 @@
129120
'statusCode' => $statusCode,
130121
);
131122

132-
if(isset($_FILES['fileInput'])){
133-
unlink(__DIR__.'\\'.$uploadfile);
134-
}
135-
136123
echo json_encode($retArr);
137124

138125
?>

0 commit comments

Comments
 (0)