Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Assets Fieldtype: Download asset when no URL is available #9018

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

duncanmcclean
Copy link
Member

This pull request makes a small improvement to the Assets Fieldtype....

When on a read-only asset field and clicking onto an asset, it would previously go to the asset's URL. However, if the asset container's filesystem doesn't have a URL set, the URL wouldn't work. Instead, it'll now open the download prompt.

Fixes #8595.

@duncanmcclean duncanmcclean changed the title [5.x] Assets Fieldtype: Download asset when no URL is available [4.x] Assets Fieldtype: Download asset when no URL is available Nov 22, 2023
@jasonvarga jasonvarga merged commit 03bc3b4 into 4.x Nov 22, 2023
33 checks passed
@jasonvarga jasonvarga deleted the download-asset-when-no-url-is-available branch November 22, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asset in private asset container can not be opened or downloaded in readonly asset fieldtype
2 participants