Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit 9adf098

Browse files
author
bertvanhoekelen
committed
Fixed issue where request entity was too large.
Updated readme.
1 parent 5ee0430 commit 9adf098

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/Http/Controllers/ConvertersController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function convert($format, Unoconv $unoconv, Request $request)
2828
}
2929

3030
if ($format == 'pdf') {
31-
return response(file_get_contents($pdf), 200 , [
31+
return response(file_get_contents($pdf), 200, [
3232
'Content-Type' => 'application/pdf'
3333
]);
3434
}
@@ -49,5 +49,4 @@ public function convert($format, Unoconv $unoconv, Request $request)
4949
'Content-Type' => $imagine->getImageMimeType()
5050
]);
5151
}
52-
5352
}

max_upload.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
upload_max_filesize = 5G
22
post_max_size = 5G
3-
memory_limit = 10G
3+
memory_limit = 10G
4+
client_max_body_size = 5G

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ The url for the convert webservice is http://dockerip/convert/{new-file-format}
2727

2828
##### Creating a pdf from docx
2929
```sh
30-
$ curl --form [email protected] http://192.168.99.100/convert/pdf > newfile.pdf
30+
$ curl --form [email protected] http://192.168.99.100:3000/convert/pdf > newfile.pdf
3131
```
3232

3333
##### Creating a jpg from docx
3434
```sh
35-
$ curl --form [email protected] http://192.168.99.100/convert/jpg > newfile.jpg
35+
$ curl --form [email protected] http://192.168.99.100:3000/convert/jpg > newfile.jpg
3636
```

0 commit comments

Comments
 (0)