Skip to content

Commit ef6b7c9

Browse files
committed
add support for base 64 encoded filenames
1 parent 2e0b015 commit ef6b7c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+5689
-5720
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ coverage/**
22
dist/**
33
scripts/**
44
**/*.sh
5-
rollup.config.js
5+
rollup.config.js
6+
populate-readme.cjs

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,18 @@ Sets a custom fallback image by specifying its URL.
366366
pb().fallbackImageUrl('https://example.com');
367367
```
368368

369-
### fileName ([imgproxy docs](https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#filename))
369+
### fileName ([imgproxy docs](https://github.com/imgproxy/imgproxy/blob/41b9ebe9277ef3e664e0a842fbc0e912b2640969/docs/generating_the_url.md#filename))
370370

371371
Sets the filename for the Content-Disposition header.
372372

373373
#### Example
374374

375375
```typescript
376+
// Not encoded
376377
pb().fileName('filename.png');
378+
379+
// Encoded
380+
pb().fileName('ZmlsZW5hbWUucG5n', true);
377381
```
378382

379383
### format ([imgproxy docs](https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#format))

docs/assets/main.js

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

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)