Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/api/convert/bin/curl
Binary file not shown.
2 changes: 1 addition & 1 deletion src/api/convert/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports.handler = async (event) => {

let documentUrl = event.queryStringParameters.document_url;

let txt = child_process.execSync(`curl --silent -L ${documentUrl} | /lib64/ld-linux-x86-64.so.2 ./bin/catdoc -`).toString();
let txt = child_process.execSync(`./bin/curl --silent -L ${documentUrl} | /lib64/ld-linux-x86-64.so.2 ./bin/catdoc -`).toString();

// Lambda response max size is 6MB. The workaround is to upload result to S3 and redirect user to the file.
let key = uuid.v4();
Expand Down
Binary file added src/api/convert/lib/libcrypt.so.1
Binary file not shown.
Binary file added src/api/convert/lib/libcurl.so.4
Binary file not shown.
Binary file added src/api/convert/lib/libexpat.so.1
Binary file not shown.
Binary file added src/api/convert/lib/libidn2.so.0
Binary file not shown.
Binary file added src/api/convert/lib/liblber-2.4.so.2
Binary file not shown.
Binary file added src/api/convert/lib/libldap-2.4.so.2
Binary file not shown.
Binary file added src/api/convert/lib/libmetalink.so.3
Binary file not shown.
Binary file added src/api/convert/lib/libnghttp2.so.14
Binary file not shown.
Binary file added src/api/convert/lib/libnss3.so
Binary file not shown.
Binary file added src/api/convert/lib/libsasl2.so.3
Binary file not shown.
Binary file added src/api/convert/lib/libsmime3.so
Binary file not shown.
Binary file added src/api/convert/lib/libssh2.so.1
Binary file not shown.
Binary file added src/api/convert/lib/libssl3.so
Binary file not shown.
Binary file added src/api/convert/lib/libunistring.so.0
Binary file not shown.
2 changes: 2 additions & 0 deletions src/api/convert/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "api",
"version": "0.1.0",
"private": true,
"dependencies": {
"node-uuid": "1.4.3"
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "frontend",
"version": "0.1.0",
"private": true
}
2 changes: 1 addition & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Transform: AWS::Serverless-2016-10-31

Globals:
Function:
Runtime: nodejs8.10
Runtime: nodejs12.x
Handler: index.handler
MemorySize: 3008
Timeout: 10
Expand Down