Skip to content

Commit 378b68c

Browse files
Remove file extension from createReadStream()
1 parent 6f8cfa1 commit 378b68c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScript/Endpoint Examples/JSON Payload/summarized-pdf-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var apiUrl = "https://api.pdfrest.com";
99
*/
1010
//var apiUrl = "https://eu-api.pdfrest.com";
1111

12-
var upload_data = fs.createReadStream("/path/to/file.pdf");
12+
var upload_data = fs.createReadStream("/path/to/file");
1313

1414
var upload_config = {
1515
method: "post",

0 commit comments

Comments
 (0)