plan2net / webp

Create a WebP copy for images (TYPO3 CMS)
GNU General Public License v3.0
60 stars 33 forks source link

Downloading the original file from the backend #62

Closed akiessling closed 1 year ago

akiessling commented 2 years ago

One of my editors asked me, how he could download an original image file in the TYPo3 backend. We configured the convert_all flag and thus whenever he tried to save the image he got the webp version served. If i remember correctly, i tried this some months ago with Chrome and it downloaded the original jpg. Now it wants to save the webp version and so i assume that it now maybe sends different headers so the rewrite rule kicks in.

I thought about adding a dedicated download button to the file list module. The download attribute seems to work to get the original file. Or maybe the rewrite condition could be modified to skip if a certain parameter is set?

Is there any other / better / easier way for editors to get the original file?

The system i'm dealing with here is T3 9.5 with and thus version 2.2.2 of the webp extension

xerc commented 2 years ago

specifiy one/more folders within OR add .. in front of the rule-set

  RewriteCond %{HTTP_COOKIE} !be_typo_user

OR this .. via /path/what-ever.jpg?dl

  RewriteCond %{QUERY_STRING} !^dl
wazum commented 1 year ago

Thanks for answering the question @xerc