Open loongmxbt opened 8 years ago
Using exfile-imagemagick and imagemagick solves the "file rename problem".
I have a similar issue.
I'm serving .pdf files and identify -format %w <file>
commands takes too long to run, giving me GenServer Timeout error. (I'm using master branch of ExfileImagemagick)
I compared the source code of refile and exfile and noticed that refile skips the file conversion when there's no processor in the url. Conversely, exfile always tries to convert the file when format
is present in the url.
@keichan34 what do you think about adding the whitelist of extensions that support format conversion?
It could process all of the formats by default to keep backwards compatibility.
@keichan34 I've updated my fork of exfile to support whitelisted formats.
If you're interested, here's the relevant commit: https://github.com/scarfacedeb/exfile/commit/6d1b0d26136cf7d9786402b93230a32c3c245a2d
works fine.
But when add
.pdf
or other file extensionsIt shows
Any ideas how to add extension for download?
PS:
If I use
format: "pdf"
, seems nothing changes.